Documentation ¶
Index ¶
- type ChangePasswordRequest
- type DeleteUserRequest
- type TokenRequest
- type UpdateProfileRequest
- type UserHandler
- func (u *UserHandler) ChangePassword(ctx *gin.Context)
- func (u *UserHandler) DeleteUser(ctx *gin.Context)
- func (u *UserHandler) GetPermCode(ctx *gin.Context)
- func (u *UserHandler) GetUserList(ctx *gin.Context)
- func (u *UserHandler) Login(ctx *gin.Context)
- func (u *UserHandler) Logout(ctx *gin.Context)
- func (u *UserHandler) Profile(ctx *gin.Context)
- func (u *UserHandler) RefreshToken(ctx *gin.Context)
- func (u *UserHandler) RegisterRoutes(server *gin.Engine)
- func (u *UserHandler) SignUp(ctx *gin.Context)
- func (u *UserHandler) UpdateProfile(ctx *gin.Context)
- func (u *UserHandler) WriteOff(ctx *gin.Context)
- type WriteOffRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangePasswordRequest ¶
type DeleteUserRequest ¶
type DeleteUserRequest struct {
UserId int `json:"user_id"`
}
type TokenRequest ¶
type TokenRequest struct {
RefreshToken string `json:"refreshToken"`
}
type UpdateProfileRequest ¶
type UpdateProfileRequest struct { UserId int `json:"user_id"` RealName string `json:"real_name"` Desc string `json:"desc"` Mobile string `json:"mobile"` FeiShuUserId string `json:"fei_shu_user_id"` AccountType int `json:"account_type"` HomePath string `json:"home_path"` Enable int `json:"enable"` }
type UserHandler ¶
type UserHandler struct {
// contains filtered or unexported fields
}
func NewUserHandler ¶
func NewUserHandler(service service.UserService, l *zap.Logger, ijwt ijwt.Handler) *UserHandler
func (*UserHandler) ChangePassword ¶
func (u *UserHandler) ChangePassword(ctx *gin.Context)
func (*UserHandler) DeleteUser ¶
func (u *UserHandler) DeleteUser(ctx *gin.Context)
func (*UserHandler) GetPermCode ¶
func (u *UserHandler) GetPermCode(ctx *gin.Context)
func (*UserHandler) GetUserList ¶
func (u *UserHandler) GetUserList(ctx *gin.Context)
func (*UserHandler) Login ¶
func (u *UserHandler) Login(ctx *gin.Context)
func (*UserHandler) Logout ¶
func (u *UserHandler) Logout(ctx *gin.Context)
func (*UserHandler) Profile ¶
func (u *UserHandler) Profile(ctx *gin.Context)
func (*UserHandler) RefreshToken ¶
func (u *UserHandler) RefreshToken(ctx *gin.Context)
func (*UserHandler) RegisterRoutes ¶
func (u *UserHandler) RegisterRoutes(server *gin.Engine)
func (*UserHandler) SignUp ¶
func (u *UserHandler) SignUp(ctx *gin.Context)
func (*UserHandler) UpdateProfile ¶
func (u *UserHandler) UpdateProfile(ctx *gin.Context)
func (*UserHandler) WriteOff ¶
func (u *UserHandler) WriteOff(ctx *gin.Context)
type WriteOffRequest ¶
Click to show internal directories.
Click to hide internal directories.