Browse Source

Update changePassword swagger method

[email protected] 3 years ago
parent
commit
6174a2393d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      server/api/v1/system/sys_user.go

+ 1 - 1
server/api/v1/system/sys_user.go

@@ -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)