mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-06-26 04:08:11 +08:00
showname
This commit is contained in:
parent
e6f7ff8cb6
commit
4489cbbaaa
@ -9,10 +9,10 @@ import (
|
||||
pbAuth "github.com/openimsdk/protocol/auth"
|
||||
pbcaptcha "github.com/openimsdk/protocol/captcha"
|
||||
"github.com/openimsdk/protocol/conversation"
|
||||
pbcrypto "github.com/openimsdk/protocol/crypto"
|
||||
"github.com/openimsdk/protocol/group"
|
||||
"github.com/openimsdk/protocol/msg"
|
||||
"github.com/openimsdk/protocol/relation"
|
||||
pbcrypto "github.com/openimsdk/protocol/crypto"
|
||||
"github.com/openimsdk/protocol/rtc"
|
||||
"github.com/openimsdk/protocol/third"
|
||||
"github.com/openimsdk/protocol/user"
|
||||
@ -188,7 +188,7 @@ func newGinRouter(ctx context.Context, client discovery.SvcDiscoveryRegistry, co
|
||||
friendRouterGroup.POST("/get_self_friend_apply_list", f.GetSelfApplyList)
|
||||
friendRouterGroup.POST("/get_friend_list", f.GetFriendList)
|
||||
friendRouterGroup.POST("/get_designated_friends", f.GetDesignatedFriends)
|
||||
friendRouterGroup.POST("/add_friend", f.ApplyToAddFriend)
|
||||
friendRouterGroup.POST("/add_friend", f.AddOnewayFriend)
|
||||
friendRouterGroup.POST("/add_friend_response", f.RespondFriendApply)
|
||||
friendRouterGroup.POST("/set_friend_remark", f.SetFriendRemark)
|
||||
friendRouterGroup.POST("/add_black", f.AddBlack)
|
||||
@ -334,8 +334,8 @@ func newGinRouter(ctx context.Context, client discovery.SvcDiscoveryRegistry, co
|
||||
phoneGroup := r.Group("/phone")
|
||||
phoneGroup.POST("/get_sn_info", phoneSN.GetSNInfo)
|
||||
phoneGroup.POST("/set_sn_info", phoneSN.SetSNInfo)
|
||||
}
|
||||
{
|
||||
}
|
||||
{
|
||||
rc := NewRtcApi(rtc.NewRtcServiceClient(rtcConn))
|
||||
rtcGroup := r.Group("/rtc")
|
||||
rtcGroup.POST("/signal_message_assemble", rc.SignalMessageAssemble)
|
||||
|
||||
@ -43,23 +43,19 @@ const (
|
||||
)
|
||||
|
||||
type User struct {
|
||||
UserID string `bson:"user_id"`
|
||||
Nickname string `bson:"nickname"`
|
||||
FaceURL string `bson:"face_url"`
|
||||
Ex string `bson:"ex"`
|
||||
AppMangerLevel int32 `bson:"app_manger_level"`
|
||||
GlobalRecvMsgOpt int32 `bson:"global_recv_msg_opt"`
|
||||
CreateTime time.Time `bson:"create_time"`
|
||||
FirstName string `bson:"first_name"`
|
||||
LastName string `bson:"last_name"`
|
||||
// Phone 用户手机号(明文,仅服务端留存,下发时按 PhoneVisibility 过滤)
|
||||
Phone string `bson:"phone"`
|
||||
// PhoneVisibility 0=所有人可见 1=仅好友可见 2=隐藏
|
||||
PhoneVisibility int32 `bson:"phone_visibility"`
|
||||
// CallAcceptSetting 0=所有人可发起 1=仅好友可发起 2=不接受任何通话
|
||||
CallAcceptSetting int32 `bson:"call_accept_setting"`
|
||||
// MsgReceiveSetting 0=所有人可发送 1=仅好友可发送 2=所有人不可发送
|
||||
MsgReceiveSetting int32 `bson:"msg_receive_setting"`
|
||||
UserID string `bson:"user_id"`
|
||||
Nickname string `bson:"nickname"`
|
||||
FaceURL string `bson:"face_url"`
|
||||
Ex string `bson:"ex"`
|
||||
AppMangerLevel int32 `bson:"app_manger_level"`
|
||||
GlobalRecvMsgOpt int32 `bson:"global_recv_msg_opt"`
|
||||
CreateTime time.Time `bson:"create_time"`
|
||||
FirstName string `bson:"first_name"`
|
||||
LastName string `bson:"last_name"`
|
||||
Phone string `bson:"phone"`
|
||||
PhoneVisibility int32 `bson:"phone_visibility"`
|
||||
CallAcceptSetting int32 `bson:"call_accept_setting"`
|
||||
MsgReceiveSetting int32 `bson:"msg_receive_setting"`
|
||||
}
|
||||
|
||||
func (u *User) GetNickname() string {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user