Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeUserFollowCountService ¶
type ChangeUserFollowCountService struct {
// contains filtered or unexported fields
}
func NewChangeUserFollowCountService ¶
func NewChangeUserFollowCountService(ctx context.Context) *ChangeUserFollowCountService
GetUserService new MGetUserService
func (*ChangeUserFollowCountService) ChangeUserFollowCount ¶
func (s *ChangeUserFollowCountService) ChangeUserFollowCount(userID int64, toUserID int64, isFollow bool) error
根据userId获得TableUser对象--这里不处理"是否关注(都默认false)",放到relation模块处理
type CheckUserService ¶
type CheckUserService struct {
// contains filtered or unexported fields
}
func NewCheckUserService ¶
func NewCheckUserService(ctx context.Context) *CheckUserService
NewCheckUserService new CheckUserService
func (*CheckUserService) CheckUser ¶
func (s *CheckUserService) CheckUser(req *UserServer.DouyinUserLoginRequest) (int64, error)
CheckUser check user info
type GetUserService ¶
type GetUserService struct {
// contains filtered or unexported fields
}
func NewGetUserService ¶
func NewGetUserService(ctx context.Context) *GetUserService
GetUserService new MGetUserService
func (*GetUserService) GetMUserById ¶
func (s *GetUserService) GetMUserById(ids []int64) ([]*db.User, error)
根据userId获得TableUser对象--这里不处理"是否关注(都默认false)",放到relation模块处理
func (*GetUserService) GetUserById ¶
func (s *GetUserService) GetUserById(id int64) (db.User, error)
根据userId获得TableUser对象
func (*GetUserService) GetUserByName ¶
func (s *GetUserService) GetUserByName(name string) (db.User, error)
根据username获得TableUser对象
type RegisterService ¶
type RegisterService struct {
// contains filtered or unexported fields
}
func NewCreateUserService ¶
func NewCreateUserService(ctx context.Context) *RegisterService
该函数可以创建一个新的注册服务--每次传入都是新的
func (*RegisterService) CreateUser ¶
func (s *RegisterService) CreateUser(req *UserServer.DouyinUserRegisterRequest) error
CreateUser create user info.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.