Documentation ¶
Index ¶
- func AddFollow(ctx context.Context, userId int64, toUserId int64) error
- func DelFollow(ctx context.Context, userId int64, toUserId int64) error
- func GetFollowSet(ctx context.Context, userID int64) (map[int64]struct{}, error)
- func MGetFollowList(ctx context.Context, userID int64) ([]*db.Follow, error)
- func MGetFollowerList(ctx context.Context, userID int64) ([]*db.Follow, error)
- func QueryFollowInfo(ctx context.Context, userID int64, toUserID int64) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFollowSet ¶
获得关注的集合---用于Redis的改进or快速知道与粉丝是否被关注
func MGetFollowList ¶
获取关注列表
func MGetFollowerList ¶
获取粉丝列表
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.