Documentation ¶
Index ¶
- Variables
- func FollowAction(ctx context.Context, follow *Follow) error
- func FollowCount(ctx context.Context, uid int64) (int64, error)
- func FollowListAction(ctx context.Context, uid int64) (*[]int64, error)
- func FollowerCount(ctx context.Context, uid int64) (int64, error)
- func FollowerListAction(ctx context.Context, uid int64) (*[]int64, error)
- func FriendListAction(ctx context.Context, uid int64) (*[]int64, error)
- func Init()
- func IsFollow(ctx context.Context, uid, tid int64) (bool, error)
- func UnFollowAction(ctx context.Context, follow *Follow) error
- type Follow
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
View Source
var RecordNotFound = gorm.ErrRecordNotFound
View Source
var SF *utils.Snowflake
Functions ¶
func FollowListAction ¶
关注列表(获取to_user_id的列表)
func FollowerListAction ¶
粉丝列表(获取user_id的列表)
func FriendListAction ¶
好友列表(先获取to_user_id的列表)
Types ¶
Click to show internal directories.
Click to hide internal directories.