userlogic

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UserInfoToPb

func UserInfoToPb(ui *mysql.SysUserInfo) *sys.UserInfo

Types

type CheckTokenLogic

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

func NewCheckTokenLogic

func NewCheckTokenLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CheckTokenLogic

func (*CheckTokenLogic) CheckToken

func (l *CheckTokenLogic) CheckToken(in *sys.CheckTokenReq) (*sys.CheckTokenResp, error)

type CreateLogic

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

func NewCreateLogic

func NewCreateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateLogic

func (*CreateLogic) CheckPwd

func (l *CreateLogic) CheckPwd(in *sys.UserCreateReq) error

func (*CreateLogic) Create

func (l *CreateLogic) Create(in *sys.UserCreateReq) (*sys.UserCreateResp, error)

type DeleteLogic

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

func NewDeleteLogic

func NewDeleteLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteLogic

func (*DeleteLogic) Delete

func (l *DeleteLogic) Delete(in *sys.UserDeleteReq) (*sys.Response, error)

type IndexLogic

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

func NewIndexLogic

func NewIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *IndexLogic

func (*IndexLogic) Index

func (l *IndexLogic) Index(in *sys.UserIndexReq) (*sys.UserIndexResp, 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) GetUserInfo

func (l *LoginLogic) GetUserInfo(in *sys.LoginReq) (uc *mysql.SysUserInfo, err error)

func (*LoginLogic) Login

func (l *LoginLogic) Login(in *sys.LoginReq) (*sys.LoginResp, error)

type ReadLogic

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

func NewReadLogic

func NewReadLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ReadLogic

func (*ReadLogic) Read

func (l *ReadLogic) Read(in *sys.UserReadReq) (*sys.UserReadResp, error)

type UpdateLogic

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

func NewUpdateLogic

func NewUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateLogic

func (*UpdateLogic) Update

func (l *UpdateLogic) Update(in *sys.UserUpdateReq) (*sys.Response, error)

Jump to

Keyboard shortcuts

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