auth

package
v0.0.0-...-035d22f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

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

type CodeLogin struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCodeLogin

func NewCodeLogin(ctx context.Context, svcCtx *svc.ServiceContext, r *http.Request) *CodeLogin

func (*CodeLogin) CodeLogin

func (l *CodeLogin) CodeLogin(req *types.CodeLoginRequest) (resp *types.LoginResponse, err error)

type Error

type Error struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewError

func NewError(ctx context.Context, svcCtx *svc.ServiceContext, r *http.Request) *Error

func (*Error) Error

func (l *Error) Error(req *types.ErrorRequest) (resp *types.ErrorResponse, err error)

type GetUserInfo

type GetUserInfo struct {
	logx.Logger
	// contains filtered or unexported fields
}

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

type PwdLogin struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewPwdLogin

func NewPwdLogin(ctx context.Context, svcCtx *svc.ServiceContext, r *http.Request) *PwdLogin

func (*PwdLogin) PwdLogin

func (l *PwdLogin) PwdLogin(req *types.PwdLoginRequest) (resp *types.LoginResponse, err error)

type RefreshToken

type RefreshToken struct {
	logx.Logger
	// contains filtered or unexported fields
}

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

type Register struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewRegister

func NewRegister(ctx context.Context, svcCtx *svc.ServiceContext, r *http.Request) *Register

func (*Register) Register

func (l *Register) Register(req *types.RegisterRequest) (resp *types.RegisterResponse, err error)

type ResetPassword

type ResetPassword struct {
	logx.Logger
	// contains filtered or unexported fields
}

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

type SendVerificationCode struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewSendVerificationCode

func NewSendVerificationCode(ctx context.Context, svcCtx *svc.ServiceContext, r *http.Request) *SendVerificationCode

func (*SendVerificationCode) SendVerificationCode

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL