Documentation ¶
Index ¶
- func TransRoleName(svc *svc.ServiceContext, ctx context.Context, data []string) []string
- type ChangePasswordLogic
- type CreateUserLogic
- type DeleteUserLogic
- type GetUserByIdLogic
- type GetUserInfoLogic
- type GetUserListLogic
- type GetUserPermCodeLogic
- type GetUserProfileLogic
- type LogoutLogic
- type RefreshTokenLogic
- type UpdateUserLogic
- type UpdateUserProfileLogic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TransRoleName ¶ added in v1.1.4
TransRoleName returns the i18n translation of role name slice.
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.BaseMsgResp, err error)
type CreateUserLogic ¶ added in v0.2.4
func NewCreateUserLogic ¶ added in v0.2.4
func NewCreateUserLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateUserLogic
func (*CreateUserLogic) CreateUser ¶ added in v0.2.4
func (l *CreateUserLogic) CreateUser(req *types.UserInfo) (resp *types.BaseMsgResp, err error)
type DeleteUserLogic ¶
func NewDeleteUserLogic ¶
func NewDeleteUserLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteUserLogic
func (*DeleteUserLogic) DeleteUser ¶
func (l *DeleteUserLogic) DeleteUser(req *types.UUIDsReq) (resp *types.BaseMsgResp, err error)
type GetUserByIdLogic ¶ added in v0.2.4
func NewGetUserByIdLogic ¶ added in v0.2.4
func NewGetUserByIdLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetUserByIdLogic
func (*GetUserByIdLogic) GetUserById ¶ added in v0.2.4
func (l *GetUserByIdLogic) GetUserById(req *types.UUIDReq) (resp *types.UserInfoResp, err error)
type GetUserInfoLogic ¶
func NewGetUserInfoLogic ¶
func NewGetUserInfoLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetUserInfoLogic
func (*GetUserInfoLogic) GetUserInfo ¶
func (l *GetUserInfoLogic) GetUserInfo() (resp *types.UserBaseIDInfoResp, err error)
type GetUserListLogic ¶
func NewGetUserListLogic ¶
func NewGetUserListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetUserListLogic
func (*GetUserListLogic) GetUserList ¶
func (l *GetUserListLogic) GetUserList(req *types.UserListReq) (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 LogoutLogic ¶ added in v0.1.1
func NewLogoutLogic ¶ added in v0.1.1
func NewLogoutLogic(ctx context.Context, svcCtx *svc.ServiceContext) *LogoutLogic
func (*LogoutLogic) Logout ¶ added in v0.1.1
func (l *LogoutLogic) Logout() (resp *types.BaseMsgResp, err error)
type RefreshTokenLogic ¶ added in v1.4.8
func NewRefreshTokenLogic ¶ added in v1.4.8
func NewRefreshTokenLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RefreshTokenLogic
func (*RefreshTokenLogic) RefreshToken ¶ added in v1.4.8
func (l *RefreshTokenLogic) RefreshToken() (resp *types.RefreshTokenResp, err error)
type UpdateUserLogic ¶ added in v0.2.4
func NewUpdateUserLogic ¶ added in v0.2.4
func NewUpdateUserLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateUserLogic
func (*UpdateUserLogic) UpdateUser ¶ added in v0.2.4
func (l *UpdateUserLogic) UpdateUser(req *types.UserInfo) (resp *types.BaseMsgResp, 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.ProfileInfo) (resp *types.BaseMsgResp, err error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.