auth

package
v0.0.0-...-b32e05d Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BindUserEmailLogic

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

func NewBindUserEmailLogic

func NewBindUserEmailLogic(ctx context.Context, svcCtx *svc.ServiceContext) *BindUserEmailLogic

绑定邮箱

func (*BindUserEmailLogic) BindUserEmail

func (l *BindUserEmailLogic) BindUserEmail(req *types.BindUserEmailReq) (resp *types.EmptyResp, err error)

type LoginLogic

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

func NewLoginLogic

func NewLoginLogic(ctx context.Context, svcCtx *svc.ServiceContext) *LoginLogic

func (*LoginLogic) Login

func (l *LoginLogic) Login(req *types.LoginReq) (resp *types.LoginResp, err error)

type LogoffLogic

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

func NewLogoffLogic

func NewLogoffLogic(ctx context.Context, svcCtx *svc.ServiceContext) *LogoffLogic

注销

func (*LogoffLogic) Logoff

func (l *LogoffLogic) Logoff(req *types.EmptyReq) (resp *types.EmptyResp, err error)

type LogoutLogic

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

func NewLogoutLogic

func NewLogoutLogic(ctx context.Context, svcCtx *svc.ServiceContext) *LogoutLogic

登出

func (*LogoutLogic) Logout

func (l *LogoutLogic) Logout(req *types.EmptyReq) (resp *types.EmptyResp, err error)

type OauthAuthorizeUrlLogic

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

func NewOauthAuthorizeUrlLogic

func NewOauthAuthorizeUrlLogic(ctx context.Context, svcCtx *svc.ServiceContext) *OauthAuthorizeUrlLogic

第三方登录授权地址

func (*OauthAuthorizeUrlLogic) OauthAuthorizeUrl

func (l *OauthAuthorizeUrlLogic) OauthAuthorizeUrl(req *types.OauthLoginReq) (resp *types.OauthLoginUrlResp, err error)

type OauthLoginLogic

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

func NewOauthLoginLogic

func NewOauthLoginLogic(ctx context.Context, svcCtx *svc.ServiceContext) *OauthLoginLogic

第三方登录

func (*OauthLoginLogic) OauthLogin

func (l *OauthLoginLogic) OauthLogin(req *types.OauthLoginReq) (resp *types.LoginResp, err error)

type RegisterLogic

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

func NewRegisterLogic

func NewRegisterLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RegisterLogic

注册

func (*RegisterLogic) Register

func (l *RegisterLogic) Register(req *types.RegisterReq) (resp *types.EmptyResp, err error)

type ResetPasswordLogic

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

func NewResetPasswordLogic

func NewResetPasswordLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ResetPasswordLogic

重置密码

func (*ResetPasswordLogic) ResetPassword

func (l *ResetPasswordLogic) ResetPassword(req *types.ResetPasswordReq) (resp *types.EmptyResp, err error)

type SendBindEmailLogic

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

func NewSendBindEmailLogic

func NewSendBindEmailLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SendBindEmailLogic

发送绑定邮箱验证码

func (*SendBindEmailLogic) SendBindEmail

func (l *SendBindEmailLogic) SendBindEmail(req *types.UserEmailReq) (resp *types.EmptyResp, err error)

type SendRegisterEmailLogic

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

func NewSendRegisterEmailLogic

func NewSendRegisterEmailLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SendRegisterEmailLogic

发送注册账号邮件

func (*SendRegisterEmailLogic) SendRegisterEmail

func (l *SendRegisterEmailLogic) SendRegisterEmail(req *types.UserEmailReq) (resp *types.EmptyResp, err error)

type SendResetEmailLogic

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

func NewSendResetEmailLogic

func NewSendResetEmailLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SendResetEmailLogic

发送重置密码邮件

func (*SendResetEmailLogic) SendResetEmail

func (l *SendResetEmailLogic) SendResetEmail(req *types.UserEmailReq) (resp *types.EmptyResp, err error)

Jump to

Keyboard shortcuts

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