Documentation ¶
Index ¶
- func BuildCredentialPhone(areaCode, phone string) string
- func DbToPbAttribute(attribute *table.Attribute) *common.UserPublicInfo
- func DbToPbAttributes(attributes []*table.Attribute) []*common.UserPublicInfo
- func DbToPbUserFullInfo(attribute *table.Attribute) *common.UserFullInfo
- func DbToPbUserFullInfos(attributes []*table.Attribute) []*common.UserFullInfo
- func Start(ctx context.Context, config *Config, client discovery.SvcDiscoveryRegistry, ...) error
- func ToDBAttributeUpdate(req *chat.UpdateUserInfoReq) (map[string]any, error)
- func ToDBCredentialUpdate(req *chat.UpdateUserInfoReq, allowChange bool) ([]*chatdb.Credential, []*chatdb.Credential, error)
- type CallbackBeforeAddFriendReq
- type CallbackCommand
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildCredentialPhone ¶ added in v1.8.3
func DbToPbAttribute ¶
func DbToPbAttribute(attribute *table.Attribute) *common.UserPublicInfo
func DbToPbAttributes ¶
func DbToPbAttributes(attributes []*table.Attribute) []*common.UserPublicInfo
func DbToPbUserFullInfo ¶
func DbToPbUserFullInfo(attribute *table.Attribute) *common.UserFullInfo
func DbToPbUserFullInfos ¶
func DbToPbUserFullInfos(attributes []*table.Attribute) []*common.UserFullInfo
func ToDBAttributeUpdate ¶
func ToDBAttributeUpdate(req *chat.UpdateUserInfoReq) (map[string]any, error)
func ToDBCredentialUpdate ¶ added in v1.8.3
func ToDBCredentialUpdate(req *chat.UpdateUserInfoReq, allowChange bool) ([]*chatdb.Credential, []*chatdb.Credential, 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.