Documentation ¶
Index ¶
- func CreateUser(ctx context.Context, user *db.User) error
- func DecreaseFollowCount(ctx context.Context, userID int64, toUserID int64) error
- func GetUserById(ctx context.Context, userId int64) (db.User, error)
- func GetUserByName(ctx context.Context, userName string) (db.User, error)
- func GetUserInfoListById(ctx context.Context, userIDs []int64) ([]*db.User, error)
- func IncreaseFollowCount(ctx context.Context, userID int64, toUserID int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecreaseFollowCount ¶
取关操作--减少用户的关注数&减少被关注用户的粉丝数
func GetUserById ¶
根据userId获得User对象--一对一
func GetUserByName ¶
根据username获得User对象--一对一
func GetUserInfoListById ¶
批量根据ID获得用户信息---一对多
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.