logic

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPhoneNotRegister = errorx.New(errorx.ServerCommonError, "手机号码未注册")
	ErrUserPwdError     = errorx.New(errorx.ServerCommonError, "密码错误")
)
View Source
var ErrPhoneIsRegister = errorx.New(errorx.ServerCommonError, "手机号码已注册")
View Source
var ErrUserNotFound = errorx.New(errorx.ServerCommonError, "用户不存在")

Functions

This section is empty.

Types

type FindUserLogic

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

func NewFindUserLogic

func NewFindUserLogic(ctx context.Context, svcCtx *svc.ServiceContext) *FindUserLogic

func (*FindUserLogic) FindUser

func (l *FindUserLogic) FindUser(in *user.FindUserReq) (*user.FindUserResp, error)

type GetUserInfoLogic

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

func NewGetUserInfoLogic

func NewGetUserInfoLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetUserInfoLogic

func (*GetUserInfoLogic) GetUserInfo

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(in *user.LoginReq) (*user.LoginResp, error)

type PingLogic

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

func NewPingLogic

func NewPingLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PingLogic

func (*PingLogic) Ping

func (l *PingLogic) Ping(in *user.Request) (*user.Response, 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(in *user.RegisterReq) (*user.RegisterResp, error)

Jump to

Keyboard shortcuts

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