user

package
v0.0.0-...-653fb89 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrGenerateTokenError = errx.NewErrMsg("生成token失败")
View Source
var ErrUserNoExistsError = errx.NewErrMsg("用户不存在")
View Source
var ErrUsernamePwdError = errx.NewErrMsg("账号或密码不正确")

Functions

This section is empty.

Types

type AddLogic

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

func NewAddLogic

func NewAddLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AddLogic

func (*AddLogic) Add

func (l *AddLogic) Add(req *types.UserAddReq) error

type EditLogic

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

func NewEditLogic

func NewEditLogic(ctx context.Context, svcCtx *svc.ServiceContext) *EditLogic

func (*EditLogic) Edit

func (l *EditLogic) Edit(req *types.UserEditReq) error

type GenerateTokenLogic

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

func NewGenerateTokenLogic

func NewGenerateTokenLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GenerateTokenLogic

func (*GenerateTokenLogic) GenerateToken

func (l *GenerateTokenLogic) GenerateToken(userId int64) (*GenerateTokenResp, error)

type GenerateTokenResp

type GenerateTokenResp struct {
	AccessToken  string
	AccessExpire int64
	RefreshAfter int64
}

type ListLogic

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

func NewListLogic

func NewListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListLogic

func (*ListLogic) List

func (l *ListLogic) List() (resp *types.UserListResp, 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 QueryByIdLogic

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

func NewQueryByIdLogic

func NewQueryByIdLogic(ctx context.Context, svcCtx *svc.ServiceContext) *QueryByIdLogic

func (*QueryByIdLogic) QueryById

func (l *QueryByIdLogic) QueryById(req *types.FormParamId) (resp *types.UserResp, err error)

type QueryLoginUserLogic

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

func NewQueryLoginUserLogic

func NewQueryLoginUserLogic(ctx context.Context, svcCtx *svc.ServiceContext) *QueryLoginUserLogic

func (*QueryLoginUserLogic) QueryLoginUser

func (l *QueryLoginUserLogic) QueryLoginUser() (resp *types.LoginUserResp, err error)

type RemoveByIdLogic

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

func NewRemoveByIdLogic

func NewRemoveByIdLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RemoveByIdLogic

func (*RemoveByIdLogic) RemoveById

func (l *RemoveByIdLogic) RemoveById(req *types.FormParamId) error

type RemoveByIdsLogic

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

func NewRemoveByIdsLogic

func NewRemoveByIdsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RemoveByIdsLogic

func (*RemoveByIdsLogic) RemoveByIds

func (l *RemoveByIdsLogic) RemoveByIds(req *types.FormParamIds) error

Jump to

Keyboard shortcuts

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