Documentation ¶
Index ¶
- Variables
- func CreateRelation(ctx context.Context, relation *model.Relation) error
- func CreateUser(ctx context.Context, user *model.User) error
- func DeleteRelation(ctx context.Context, to_user_id int64, follower_id int64) error
- func Init()
- func QueryIsFollow(ctx context.Context, user int64, user_id int64) (bool, error)
- func QueryRelation(ctx context.Context, to_user_id int64, follower_id int64) ([]*model.Relation, error)
- func QueryRelationFollow(ctx context.Context, follower_id int64) ([]*model.Relation, error)
- func QueryRelationFollower(ctx context.Context, to_user_id int64) ([]*model.Relation, error)
- func QueryUser(ctx context.Context, userName string) ([]*model.User, error)
- func QueryUserById(ctx context.Context, users_id []int64) ([]*model.User, error)
- func UpdateFollowCount(ctx context.Context, to_user_id int64, follower_id int64, flag bool) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
func DeleteRelation ¶
func QueryIsFollow ¶
func QueryRelation ¶
func QueryRelationFollow ¶
query the 关注
func QueryRelationFollower ¶
query the 粉丝
func QueryUserById ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.