Browse Source
Merge pull request #611 from rockwang465/master
Update changePassword swagger method
main
奇淼(piexlmax
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
10 additions and
20 deletions
-
server/api/v1/system/sys_user.go
-
server/docs/docs.go
-
server/docs/swagger.json
-
server/docs/swagger.yaml
|
|
@ -142,7 +142,7 @@ func (b *BaseApi) Register(c *gin.Context) { |
|
|
|
// @Produce application/json
|
|
|
|
// @Param data body systemReq.ChangePasswordStruct true "用户名, 原密码, 新密码"
|
|
|
|
// @Success 200 {string} string "{"success":true,"data":{},"msg":"修改成功"}"
|
|
|
|
// @Router /user/changePassword [put]
|
|
|
|
// @Router /user/changePassword [post]
|
|
|
|
func (b *BaseApi) ChangePassword(c *gin.Context) { |
|
|
|
var user systemReq.ChangePasswordStruct |
|
|
|
_ = c.ShouldBindJSON(&user) |
|
|
|
|
|
@ -1554,9 +1554,7 @@ var doc = `{ |
|
|
|
} |
|
|
|
], |
|
|
|
"responses": { |
|
|
|
"200": { |
|
|
|
"description": "" |
|
|
|
} |
|
|
|
"200": {} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -1589,9 +1587,7 @@ var doc = `{ |
|
|
|
} |
|
|
|
], |
|
|
|
"responses": { |
|
|
|
"200": { |
|
|
|
"description": "" |
|
|
|
} |
|
|
|
"200": {} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -3280,7 +3276,7 @@ var doc = `{ |
|
|
|
} |
|
|
|
}, |
|
|
|
"/user/changePassword": { |
|
|
|
"put": { |
|
|
|
"post": { |
|
|
|
"security": [ |
|
|
|
{ |
|
|
|
"ApiKeyAuth": [] |
|
|
|
|
|
@ -1538,9 +1538,7 @@ |
|
|
|
} |
|
|
|
], |
|
|
|
"responses": { |
|
|
|
"200": { |
|
|
|
"description": "" |
|
|
|
} |
|
|
|
"200": {} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -1573,9 +1571,7 @@ |
|
|
|
} |
|
|
|
], |
|
|
|
"responses": { |
|
|
|
"200": { |
|
|
|
"description": "" |
|
|
|
} |
|
|
|
"200": {} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -3264,7 +3260,7 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
"/user/changePassword": { |
|
|
|
"put": { |
|
|
|
"post": { |
|
|
|
"security": [ |
|
|
|
{ |
|
|
|
"ApiKeyAuth": [] |
|
|
|
|
|
@ -1857,8 +1857,7 @@ paths: |
|
|
|
produces: |
|
|
|
- application/json |
|
|
|
responses: |
|
|
|
"200": |
|
|
|
description: "" |
|
|
|
"200": {} |
|
|
|
security: |
|
|
|
- ApiKeyAuth: [] |
|
|
|
summary: 下载模板 |
|
|
@ -1878,8 +1877,7 @@ paths: |
|
|
|
produces: |
|
|
|
- application/octet-stream |
|
|
|
responses: |
|
|
|
"200": |
|
|
|
description: "" |
|
|
|
"200": {} |
|
|
|
security: |
|
|
|
- ApiKeyAuth: [] |
|
|
|
summary: 导出Excel |
|
|
@ -2924,7 +2922,7 @@ paths: |
|
|
|
tags: |
|
|
|
- System |
|
|
|
/user/changePassword: |
|
|
|
put: |
|
|
|
post: |
|
|
|
parameters: |
|
|
|
- description: 用户名, 原密码, 新密码 |
|
|
|
in: body |
|
|
|