feat:完善项目
This commit is contained in:
@ -39,7 +39,8 @@ type Account struct{}
|
||||
* "msg": "ok"
|
||||
* "data": {
|
||||
* "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOiIxNjM4NjA0NDYwIiwiaWF0IjoiMTYzNjAxMjQ2MCIsInVpZCI6IjIwOTU2MTg2ODk5ODEyMjI5MTIifQ.Q4_peBb9aeGaZAfUFMMzn21cbfhY6_DEocI9xlj9v9g",
|
||||
* "effect_time": 2592000
|
||||
* "effect_time": 2592000,
|
||||
* "ws_url": "",
|
||||
* }
|
||||
* }
|
||||
*/
|
||||
@ -48,9 +49,9 @@ func (a *Account) Login(c *gin.Context) {
|
||||
Account string `json:"account" form:"account" binding:"required"`
|
||||
Password string `json:"password" form:"password" binding:"required"`
|
||||
Captcha struct {
|
||||
Key string `json:"key" form:"key" binding:"required"`
|
||||
Value string `json:"value" form:"value" binding:"required"`
|
||||
} `json:"captcha" form:"captcha" binding:"required"`
|
||||
Key string `json:"key" form:"key"`
|
||||
Value string `json:"value" form:"value"`
|
||||
} `json:"captcha" form:"captcha"`
|
||||
}{}
|
||||
if err := bind(form)(c); err != nil {
|
||||
APIFailure(err.(error))(c)
|
||||
|
Reference in New Issue
Block a user