Documentation ¶
Index ¶
- func CheckRequestAddFriendCode(code string, requestUID string) error
- func CheckSource(code string) error
- func GetSoruce(code string) string
- func GetSources(codes []string) (map[string]string, error)
- func SetGroupMemberProvider(groupMemberProvide IGetGroupMemberProvider)
- func SetUserProvider(userProvider IGetUserProvider)
- type FriendModel
- type GroupMember
- type GroupModel
- type IGetGroupMemberProvider
- type IGetUserProvider
- type UserModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckRequestAddFriendCode ¶
CheckRequestAddFriendCode 检测加好友申请code是否有效
func GetSources ¶
GetSources 批量获取好友来源 返回 以code为key 来源内容为value的map
func SetGroupMemberProvider ¶
func SetGroupMemberProvider(groupMemberProvide IGetGroupMemberProvider)
SetGroupMemberProvider 设置获取群成员提供者
func SetUserProvider ¶
func SetUserProvider(userProvider IGetUserProvider)
SetUserProvider 设置获取用户提供者
Types ¶
type FriendModel ¶
FriendModel 好友model
type GroupMember ¶
GroupMember 群成员
type GroupModel ¶
GroupModel 群model
type IGetGroupMemberProvider ¶
type IGetGroupMemberProvider interface { //获取群成员信息 GetGroupMemberByVercode(vercode string) (*GroupMember, error) GetGroupMemberByVercodes(vercodes []string) ([]*GroupMember, error) //获取群信息 GetGroupByGroupNo(groupNo string) (*GroupModel, error) // 通过uid获取群成员信息 GetGroupMemberByUID(uid string, groupNo string) (*GroupMember, error) }
IGetGroupMemberProvider 获取群成员提供者
type IGetUserProvider ¶
type IGetUserProvider interface { //通过vercode获取用户信息 GetUserByVercode(vercode string) (*UserModel, error) //通过手机通讯录验证码获取用户信息 GetUserByMailListVercode(vercode string) (*UserModel, error) //通过qrvercode获取用户信息 GetUserByQRVercode(qrvercode string) (*UserModel, error) //通过UID获取用户信息 GetUserByUID(uid string) (*UserModel, error) //通过vercode获取好友信息 GetFriendByVercode(vercode string) (*FriendModel, error) GetFriendByVercodes(vercodes []string) ([]*FriendModel, error) }
IGetUserProvider 获取用户提供者
Click to show internal directories.
Click to hide internal directories.