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 ¶
func NewAddLogic ¶
func NewAddLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AddLogic
type EditLogic ¶
func NewEditLogic ¶
func NewEditLogic(ctx context.Context, svcCtx *svc.ServiceContext) *EditLogic
type GenerateTokenLogic ¶
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 ListLogic ¶
func NewListLogic ¶
func NewListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListLogic
type LoginLogic ¶
func NewLoginLogic ¶
func NewLoginLogic(ctx context.Context, svcCtx *svc.ServiceContext) *LoginLogic
type QueryByIdLogic ¶
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 ¶
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 ¶
func NewRemoveByIdLogic ¶
func NewRemoveByIdLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RemoveByIdLogic
func (*RemoveByIdLogic) RemoveById ¶
func (l *RemoveByIdLogic) RemoveById(req *types.FormParamId) error
type RemoveByIdsLogic ¶
func NewRemoveByIdsLogic ¶
func NewRemoveByIdsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RemoveByIdsLogic
func (*RemoveByIdsLogic) RemoveByIds ¶
func (l *RemoveByIdsLogic) RemoveByIds(req *types.FormParamIds) error
Click to show internal directories.
Click to hide internal directories.