From 6174a2393d62ac9514dbf26ca5882bc77b123842 Mon Sep 17 00:00:00 2001 From: "wangyecheng@yaoyanshe.com" Date: Wed, 4 Aug 2021 17:40:01 +0800 Subject: [PATCH] Update changePassword swagger method --- server/api/v1/system/sys_user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/api/v1/system/sys_user.go b/server/api/v1/system/sys_user.go index 6db0c34f..45a66c11 100644 --- a/server/api/v1/system/sys_user.go +++ b/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)