Skip to content

Commit 5dd71f4

Browse files
author
奇淼(piexlmax
authored
Merge pull request flipped-aurora#611 from rockwang465/master
Update changePassword swagger method
2 parents 18fa486 + 1ecd580 commit 5dd71f4

File tree

4 files changed

+10
-20
lines changed

4 files changed

+10
-20
lines changed

server/api/v1/system/sys_user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ func (b *BaseApi) Register(c *gin.Context) {
142142
// @Produce application/json
143143
// @Param data body systemReq.ChangePasswordStruct true "用户名, 原密码, 新密码"
144144
// @Success 200 {string} string "{"success":true,"data":{},"msg":"修改成功"}"
145-
// @Router /user/changePassword [put]
145+
// @Router /user/changePassword [post]
146146
func (b *BaseApi) ChangePassword(c *gin.Context) {
147147
var user systemReq.ChangePasswordStruct
148148
_ = c.ShouldBindJSON(&user)

server/docs/docs.go

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1554,9 +1554,7 @@ var doc = `{
15541554
}
15551555
],
15561556
"responses": {
1557-
"200": {
1558-
"description": ""
1559-
}
1557+
"200": {}
15601558
}
15611559
}
15621560
},
@@ -1589,9 +1587,7 @@ var doc = `{
15891587
}
15901588
],
15911589
"responses": {
1592-
"200": {
1593-
"description": ""
1594-
}
1590+
"200": {}
15951591
}
15961592
}
15971593
},
@@ -3280,7 +3276,7 @@ var doc = `{
32803276
}
32813277
},
32823278
"/user/changePassword": {
3283-
"put": {
3279+
"post": {
32843280
"security": [
32853281
{
32863282
"ApiKeyAuth": []

server/docs/swagger.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1538,9 +1538,7 @@
15381538
}
15391539
],
15401540
"responses": {
1541-
"200": {
1542-
"description": ""
1543-
}
1541+
"200": {}
15441542
}
15451543
}
15461544
},
@@ -1573,9 +1571,7 @@
15731571
}
15741572
],
15751573
"responses": {
1576-
"200": {
1577-
"description": ""
1578-
}
1574+
"200": {}
15791575
}
15801576
}
15811577
},
@@ -3264,7 +3260,7 @@
32643260
}
32653261
},
32663262
"/user/changePassword": {
3267-
"put": {
3263+
"post": {
32683264
"security": [
32693265
{
32703266
"ApiKeyAuth": []

server/docs/swagger.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1857,8 +1857,7 @@ paths:
18571857
produces:
18581858
- application/json
18591859
responses:
1860-
"200":
1861-
description: ""
1860+
"200": {}
18621861
security:
18631862
- ApiKeyAuth: []
18641863
summary: 下载模板
@@ -1878,8 +1877,7 @@ paths:
18781877
produces:
18791878
- application/octet-stream
18801879
responses:
1881-
"200":
1882-
description: ""
1880+
"200": {}
18831881
security:
18841882
- ApiKeyAuth: []
18851883
summary: 导出Excel
@@ -2924,7 +2922,7 @@ paths:
29242922
tags:
29252923
- System
29262924
/user/changePassword:
2927-
put:
2925+
post:
29282926
parameters:
29292927
- description: 用户名, 原密码, 新密码
29302928
in: body

0 commit comments

Comments
 (0)