feat:完善项目
This commit is contained in:
@ -20,19 +20,19 @@ type Account struct{}
|
||||
*
|
||||
* @apiHeader {string} Content-Type=application/json 传输方式
|
||||
*
|
||||
* @apiParam {String} account 登录账号
|
||||
* @apiParam {String} password 登录密码
|
||||
* @apiParam {Json} captcha 验证码信息
|
||||
* @apiParam {String} captcha.key 验证key
|
||||
* @apiParam {String} captcha.value 验证value
|
||||
* @apiParam {Object} captcha 验证码信息
|
||||
* @apiParam {String} captcha.key="key" 验证key
|
||||
* @apiParam {String} captcha.value="value" 验证value
|
||||
* @apiParam {String} account="admin" 登录账号
|
||||
* @apiParam {String} password="123456" 登录密码
|
||||
*
|
||||
* @apiSuccess (200) {Number} code 成功响应状态码!
|
||||
* @apiSuccess (200) {String} msg 成功提示
|
||||
* @apiSuccess (200) {Json} data 具体信息
|
||||
* @apiSuccess (200) {Object} data 具体信息
|
||||
* @apiSuccess (200) {String} data.token token信息,接口需要携带
|
||||
* @apiSuccess (200) {Number} data.effect_time token有效时长,秒
|
||||
* @apiSuccess (200) {Number} code 成功响应状态码!
|
||||
* @apiSuccess (200) {String} msg 成功提示
|
||||
*
|
||||
* @apiSuccessExample {json} Success response:
|
||||
* @apiSuccessExample {Json} Success response:
|
||||
* HTTPS 200 OK
|
||||
* {
|
||||
* "code": 200
|
||||
@ -62,7 +62,7 @@ func (a *Account) Login(c *gin.Context) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @api {post} /api/account/logout 账号退出
|
||||
* @api {post} /api/v1/account/logout 账号退出
|
||||
* @apiVersion 1.0.0
|
||||
* @apiName AccountLogout
|
||||
* @apiGroup Account
|
||||
|
Reference in New Issue
Block a user