Documentation ¶
Index ¶
- func Activate(c *gin.Context)
- func Add(c *gin.Context)
- func Change(c *gin.Context)
- func ChangePassword(c *gin.Context)
- func CheckToken(c *gin.Context)
- func ForgetPassword(c *gin.Context)
- func List(c *gin.Context)
- func Login(c *gin.Context)
- func Register(c *gin.Context)
- func Remove(c *gin.Context)
- func RenewPass(c *gin.Context)
- type ActivateUser
- type ChangePasswordParam
- type ForgetPasswordParam
- type LoginParam
- type NewPass
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangePassword ¶
ChangePassword used for change user password
func ForgetPassword ¶
ForgetPassword used for user forget password
Types ¶
type ActivateUser ¶
type ActivateUser struct { ID int `form:"id" binding:"required"` ActivateToken string `form:"activate_token" binding:"required"` }
ActivateUser used as param when activating user process
type ChangePasswordParam ¶
type ChangePasswordParam struct {
Password string `json:"password" binding:"required"`
}
ChangePasswordParam used as parameter for change password process
type ForgetPasswordParam ¶
type ForgetPasswordParam struct {
EmailAddress string `json:"email_address" binding:"required"`
}
ForgetPasswordParam used as parameter for forget password process
type LoginParam ¶
type LoginParam struct { UserName string `json:"username" binding:"required"` Password string `json:"password" binding:"required"` Remember bool `json:"remember"` }
LoginParam used as parameter for login process
Click to show internal directories.
Click to hide internal directories.