Documentation ¶
Index ¶
- func AddRelationInfo(ctx context.Context, followerUid, followedUid int64) error
- func DeleteRelationInfo(ctx context.Context, followerUid, followedUid int64) error
- func GetFollowInfo(ctx context.Context, uid, toUid int64) (bool, error)
- func GetFollowList(ctx context.Context, uid int64) ([]int64, error)
- func GetFollowerList(ctx context.Context, uid int64) ([]int64, error)
- func GetFriendList(ctx context.Context, uid int64) ([]int64, error)
- func GetLatestMessage(ctx context.Context, uid1, uid2 int64) (*model.MongoMessage, error)
- type RelationMeta
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddRelationInfo ¶
AddRelationInfo 添加关注信息,通过mongo事务更新两个Documents:关注者的关注列表以及被关注者的粉丝列表
func DeleteRelationInfo ¶
func GetFollowInfo ¶
GetFollowInfo 获取关注信息
func GetLatestMessage ¶
Types ¶
type RelationMeta ¶
Click to show internal directories.
Click to hide internal directories.