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
- type UpdateUserStatusLogic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChangePasswordLogic ¶
func NewChangePasswordLogic ¶
func NewChangePasswordLogic(r *http.Request, svcCtx *svc.ServiceContext) *ChangePasswordLogic
func (*ChangePasswordLogic) ChangePassword ¶
func (l *ChangePasswordLogic) ChangePassword(req *types.ChangePasswordReq) (resp *types.BaseMsgResp, err error)
type CreateOrUpdateUserLogic ¶
func NewCreateOrUpdateUserLogic ¶
func NewCreateOrUpdateUserLogic(r *http.Request, svcCtx *svc.ServiceContext) *CreateOrUpdateUserLogic
func (*CreateOrUpdateUserLogic) CreateOrUpdateUser ¶
func (l *CreateOrUpdateUserLogic) CreateOrUpdateUser(req *types.CreateOrUpdateUserReq) (resp *types.BaseMsgResp, err error)
type DeleteUserLogic ¶
func NewDeleteUserLogic ¶
func NewDeleteUserLogic(r *http.Request, svcCtx *svc.ServiceContext) *DeleteUserLogic
func (*DeleteUserLogic) DeleteUser ¶
func (l *DeleteUserLogic) DeleteUser(req *types.IDReq) (resp *types.BaseMsgResp, err error)
type GetUserInfoLogic ¶
func NewGetUserInfoLogic ¶
func NewGetUserInfoLogic(r *http.Request, svcCtx *svc.ServiceContext) *GetUserInfoLogic
func (*GetUserInfoLogic) GetUserInfo ¶
func (l *GetUserInfoLogic) GetUserInfo() (resp *types.GetUserInfoResp, err error)
type GetUserListLogic ¶
func NewGetUserListLogic ¶
func NewGetUserListLogic(r *http.Request, 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(r *http.Request, 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(r *http.Request, 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(r *http.Request, svcCtx *svc.ServiceContext) *LoginLogic
type LogoutLogic ¶ added in v0.1.1
func NewLogoutLogic ¶ added in v0.1.1
func NewLogoutLogic(r *http.Request, svcCtx *svc.ServiceContext) *LogoutLogic
func (*LogoutLogic) Logout ¶ added in v0.1.1
func (l *LogoutLogic) Logout() (resp *types.BaseMsgResp, err error)
type RegisterLogic ¶
func NewRegisterLogic ¶
func NewRegisterLogic(r *http.Request, svcCtx *svc.ServiceContext) *RegisterLogic
func (*RegisterLogic) Register ¶
func (l *RegisterLogic) Register(req *types.RegisterReq) (resp *types.BaseMsgResp, err error)
type UpdateUserProfileLogic ¶ added in v0.0.2
func NewUpdateUserProfileLogic ¶ added in v0.0.2
func NewUpdateUserProfileLogic(r *http.Request, svcCtx *svc.ServiceContext) *UpdateUserProfileLogic
func (*UpdateUserProfileLogic) UpdateUserProfile ¶ added in v0.0.2
func (l *UpdateUserProfileLogic) UpdateUserProfile(req *types.ProfileReq) (resp *types.BaseMsgResp, err error)
type UpdateUserStatusLogic ¶ added in v0.1.4
func NewUpdateUserStatusLogic ¶ added in v0.1.4
func NewUpdateUserStatusLogic(r *http.Request, svcCtx *svc.ServiceContext) *UpdateUserStatusLogic
func (*UpdateUserStatusLogic) UpdateUserStatus ¶ added in v0.1.4
func (l *UpdateUserStatusLogic) UpdateUserStatus(req *types.StatusCodeReq) (resp *types.BaseMsgResp, err error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.