Documentation ¶
Index ¶
- func DbToPbAttribute(attribute *chat.Attribute) *common.UserPublicInfo
- func DbToPbAttributes(attributes []*chat.Attribute) []*common.UserPublicInfo
- func DbToPbLogInfo(log *chat.Log) *common.LogInfo
- func DbToPbLogInfos(logs []*chat.Log) []*common.LogInfo
- func DbToPbUserAccount(account *chat.Account) *common.UserAccount
- func DbToPbUserFullInfo(attribute *chat.Attribute) *common.UserFullInfo
- func DbToPbUserFullInfoDWebAddress(attribute *entity.AttributeExpand) *common.UserFullInfo
- func DbToPbUserFullInfos(attributes []*chat.Attribute) []*common.UserFullInfo
- func DbToPbUserFullInfosDWebAddress(attributes []*entity.AttributeExpand) []*common.UserFullInfo
- func Start(discov discoveryregistry.SvcDiscoveryRegistry, server *grpc.Server) error
- func ToDBAttributeUpdate(req *chat.UpdateUserInfoReq) (map[string]any, error)
- type CallbackBeforeAddFriendReq
- type CallbackCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DbToPbAttribute ¶
func DbToPbAttribute(attribute *chat.Attribute) *common.UserPublicInfo
func DbToPbAttributes ¶
func DbToPbAttributes(attributes []*chat.Attribute) []*common.UserPublicInfo
func DbToPbUserAccount ¶
func DbToPbUserAccount(account *chat.Account) *common.UserAccount
func DbToPbUserFullInfo ¶
func DbToPbUserFullInfo(attribute *chat.Attribute) *common.UserFullInfo
func DbToPbUserFullInfoDWebAddress ¶
func DbToPbUserFullInfoDWebAddress(attribute *entity.AttributeExpand) *common.UserFullInfo
func DbToPbUserFullInfos ¶
func DbToPbUserFullInfos(attributes []*chat.Attribute) []*common.UserFullInfo
func DbToPbUserFullInfosDWebAddress ¶
func DbToPbUserFullInfosDWebAddress(attributes []*entity.AttributeExpand) []*common.UserFullInfo
func Start ¶
func Start(discov discoveryregistry.SvcDiscoveryRegistry, server *grpc.Server) error
func ToDBAttributeUpdate ¶
func ToDBAttributeUpdate(req *chat.UpdateUserInfoReq) (map[string]any, error)
Types ¶
type CallbackBeforeAddFriendReq ¶
type CallbackBeforeAddFriendReq struct { CallbackCommand `json:"callbackCommand"` FromUserID string `json:"fromUserID" ` ToUserID string `json:"toUserID"` ReqMsg string `json:"reqMsg"` OperationID string `json:"operationID"` }
type CallbackCommand ¶
type CallbackCommand string
func (CallbackCommand) GetCallbackCommand ¶
func (c CallbackCommand) GetCallbackCommand() string
Click to show internal directories.
Click to hide internal directories.