Versions in this module Expand all Collapse all v1 v1.0.0 Sep 7, 2023 Changes in this version + var DB *gorm.DB + var RecordNotFound = gorm.ErrRecordNotFound + var SF *utils.Snowflake + 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 struct + CreatedAt time.Time + DeletedAt gorm.DeletedAt + Id int64 + Status int64 + ToUserID int64 + UpdatedAt time.Time + UserID int64