dal

package
v0.0.0-...-7de97a6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFollow

func AddFollow(ctx context.Context, userId int64, toUserId int64) error

增加关系操作

func DelFollow

func DelFollow(ctx context.Context, userId int64, toUserId int64) error

删除关系操作

func GetFollowSet

func GetFollowSet(ctx context.Context, userID int64) (map[int64]struct{}, error)

获得关注的集合---用于Redis的改进or快速知道与粉丝是否被关注

func MGetFollowList

func MGetFollowList(ctx context.Context, userID int64) ([]*db.Follow, error)

获取关注列表

func MGetFollowerList

func MGetFollowerList(ctx context.Context, userID int64) ([]*db.Follow, error)

获取粉丝列表

func QueryFollowInfo

func QueryFollowInfo(ctx context.Context, userID int64, toUserID int64) (bool, error)

查看两人是否有关系

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL