Documentation
¶
Index ¶
- func Create(c *gin.Context, in *CreateRequest)
- func Delete(c *gin.Context, in *DeleteRequest)
- func EditPassword(c *gin.Context, in *EditPasswordRequest)
- func List(c *gin.Context)
- func Login(c *gin.Context, in *LoginRequest)
- func RefreshToken(c *gin.Context, in *RefreshTokenRequest)
- func Update(c *gin.Context, in *UpdateRequest)
- type CreateRequest
- type DeleteRequest
- type EditPasswordRequest
- type ListReply
- type LoginRequest
- type LoginResponse
- type RefreshTokenRequest
- type UpdateRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RefreshToken ¶
func RefreshToken(c *gin.Context, in *RefreshTokenRequest)
RefreshToken 刷新 token
Types ¶
type CreateRequest ¶
type DeleteRequest ¶
type DeleteRequest struct {
Uuid []string `json:"uuid" binding:"required"` // 用户唯一标识
}
type EditPasswordRequest ¶
type LoginRequest ¶
type LoginResponse ¶
type RefreshTokenRequest ¶
type RefreshTokenRequest struct {
RefreshToken string `json:"refresh_token" binding:"required"` // 用于延期的 token
}
type UpdateRequest ¶
type UpdateRequest struct {
Uuid string `json:"uuid" binding:"required"` // 用户uuid,必填
*CreateRequest
}
Click to show internal directories.
Click to hide internal directories.