Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RegisterError = errors.New("注册失败")
View Source
var SendVerificationError = errors.New("发送失败, 请联系管理员")
Functions ¶
This section is empty.
Types ¶
type CodeLogin ¶
func NewCodeLogin ¶
func (*CodeLogin) CodeLogin ¶
func (l *CodeLogin) CodeLogin(req *types.CodeLoginRequest) (resp *types.LoginResponse, err error)
type Error ¶
func (*Error) Error ¶
func (l *Error) Error(req *types.ErrorRequest) (resp *types.ErrorResponse, err error)
type GetUserInfo ¶
func NewGetUserInfo ¶
func NewGetUserInfo(ctx context.Context, svcCtx *svc.ServiceContext, r *http.Request) *GetUserInfo
func (*GetUserInfo) GetUserInfo ¶
func (l *GetUserInfo) GetUserInfo(req *types.GetUserInfoRequest) (resp *types.GetUserInfoResponse, err error)
type PwdLogin ¶
func NewPwdLogin ¶
func (*PwdLogin) PwdLogin ¶
func (l *PwdLogin) PwdLogin(req *types.PwdLoginRequest) (resp *types.LoginResponse, err error)
type RefreshToken ¶
func NewRefreshToken ¶
func NewRefreshToken(ctx context.Context, svcCtx *svc.ServiceContext, r *http.Request) *RefreshToken
func (*RefreshToken) RefreshToken ¶
func (l *RefreshToken) RefreshToken(req *types.RefreshTokenRequest) (resp *types.RefreshTokenResponse, err error)
type Register ¶
func NewRegister ¶
func (*Register) Register ¶
func (l *Register) Register(req *types.RegisterRequest) (resp *types.RegisterResponse, err error)
type ResetPassword ¶
func NewResetPassword ¶
func NewResetPassword(ctx context.Context, svcCtx *svc.ServiceContext, r *http.Request) *ResetPassword
func (*ResetPassword) ResetPassword ¶
func (l *ResetPassword) ResetPassword(req *types.ResetPasswordRequest) (resp *types.ResetPasswordResponse, err error)
type SendVerificationCode ¶
func NewSendVerificationCode ¶
func NewSendVerificationCode(ctx context.Context, svcCtx *svc.ServiceContext, r *http.Request) *SendVerificationCode
func (*SendVerificationCode) SendVerificationCode ¶
func (l *SendVerificationCode) SendVerificationCode(req *types.SendVerificationCodeRequest) (resp *types.SendVerificationCodeResponse, err error)
Click to show internal directories.
Click to hide internal directories.