Documentation ¶
Index ¶
- func GetJwtToken(secretKey, uuid string, iat, seconds, roleId int64) (string, error)
- type ChangePasswordLogic
- type CreateOrUpdateUserLogic
- type DeleteUserLogic
- type GetUserInfoLogic
- type GetUserListLogic
- type GetUserPermCodeLogic
- type GetUserProfileLogic
- type LoginLogic
- type LogoutLogic
- type RegisterLogic
- type UpdateUserProfileLogic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChangePasswordLogic ¶
func NewChangePasswordLogic ¶
func NewChangePasswordLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ChangePasswordLogic
func (*ChangePasswordLogic) ChangePassword ¶
func (l *ChangePasswordLogic) ChangePassword(req *types.ChangePasswordReq) (resp *types.SimpleMsg, err error)
type CreateOrUpdateUserLogic ¶
func NewCreateOrUpdateUserLogic ¶
func NewCreateOrUpdateUserLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateOrUpdateUserLogic
func (*CreateOrUpdateUserLogic) CreateOrUpdateUser ¶
func (l *CreateOrUpdateUserLogic) CreateOrUpdateUser(req *types.CreateOrUpdateUserReq) (resp *types.SimpleMsg, err error)
type DeleteUserLogic ¶
func NewDeleteUserLogic ¶
func NewDeleteUserLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteUserLogic
func (*DeleteUserLogic) DeleteUser ¶
type GetUserInfoLogic ¶
func NewGetUserInfoLogic ¶
func NewGetUserInfoLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetUserInfoLogic
func (*GetUserInfoLogic) GetUserInfo ¶
func (l *GetUserInfoLogic) GetUserInfo() (resp *types.GetUserInfoResp, err error)
type GetUserListLogic ¶
func NewGetUserListLogic ¶
func NewGetUserListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetUserListLogic
func (*GetUserListLogic) GetUserList ¶
func (l *GetUserListLogic) GetUserList(req *types.GetUserListReq) (resp *types.UserListResp, err error)
type GetUserPermCodeLogic ¶
func NewGetUserPermCodeLogic ¶
func NewGetUserPermCodeLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetUserPermCodeLogic
func (*GetUserPermCodeLogic) GetUserPermCode ¶
func (l *GetUserPermCodeLogic) GetUserPermCode() (resp *types.PermCodeResp, err error)
type GetUserProfileLogic ¶ added in v0.0.2
func NewGetUserProfileLogic ¶ added in v0.0.2
func NewGetUserProfileLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetUserProfileLogic
func (*GetUserProfileLogic) GetUserProfile ¶ added in v0.0.2
func (l *GetUserProfileLogic) GetUserProfile() (resp *types.ProfileResp, err error)
type LoginLogic ¶
func NewLoginLogic ¶
func NewLoginLogic(ctx context.Context, svcCtx *svc.ServiceContext) *LoginLogic
type LogoutLogic ¶ added in v0.1.1
func NewLogoutLogic ¶ added in v0.1.1
func NewLogoutLogic(ctx context.Context, svcCtx *svc.ServiceContext) *LogoutLogic
type RegisterLogic ¶
func NewRegisterLogic ¶
func NewRegisterLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RegisterLogic
func (*RegisterLogic) Register ¶
func (l *RegisterLogic) Register(req *types.RegisterReq) (resp *types.SimpleMsg, err error)
type UpdateUserProfileLogic ¶ added in v0.0.2
func NewUpdateUserProfileLogic ¶ added in v0.0.2
func NewUpdateUserProfileLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateUserProfileLogic
func (*UpdateUserProfileLogic) UpdateUserProfile ¶ added in v0.0.2
func (l *UpdateUserProfileLogic) UpdateUserProfile(req *types.ProfileReq) (resp *types.SimpleMsg, err error)
Click to show internal directories.
Click to hide internal directories.