Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetUserService ¶
type GetUserService struct {
// contains filtered or unexported fields
}
func NewGetUserService ¶
func NewGetUserService(ctx context.Context) *GetUserService
func (*GetUserService) GetUser ¶
func (s *GetUserService) GetUser(req *user.GetUserRequest, myID int64) (*user.User, error)
GetUser 获取用户
type LoginService ¶
type LoginService struct {
// contains filtered or unexported fields
}
func NewLoginService ¶
func NewLoginService(ctx context.Context) *LoginService
NewLoginService new LoginService
func (*LoginService) Login ¶
func (s *LoginService) Login(req *user.UserLoginRequest) (int64, string, error)
Login 检查账号密码返回id和token
type RegisterService ¶
type RegisterService struct {
// contains filtered or unexported fields
}
func NewRegisterService ¶
func NewRegisterService(ctx context.Context) *RegisterService
func (*RegisterService) Register ¶
func (s *RegisterService) Register(req *user.UserRegisterRequest) error
Register 注册
Click to show internal directories.
Click to hide internal directories.