Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RelationBiz ¶
type RelationBiz interface { // follower对followee的关注 UserFollow(ctx context.Context, follower, followee uint64) error // follower取消对followee关注 UserUnFollow(ctx context.Context, follower, followee uint64) error // 获取用户的关注列表 GetUserFollowingList(ctx context.Context, uid uint64, offset uint64, limit int) ([]uint64, model.ListResult, error) // 获取用户的粉丝列表 GetUserFansList(ctx context.Context, uid uint64, offset uint64, limit int) ([]uint64, model.ListResult, error) // 获取用户关注数 GetUserFollowingCount(ctx context.Context, uid uint64) (uint64, error) // 获取用户粉丝数 GetUserFanCount(ctx context.Context, uid uint64) (uint64, error) }
关注相关
func NewRelationBiz ¶
func NewRelationBiz() RelationBiz
Click to show internal directories.
Click to hide internal directories.