调整了前端接口调用防止越权

This commit is contained in:
piexlmax
2022-01-07 19:26:29 +08:00
parent 8d34adee14
commit 85ca35684c
4 changed files with 26 additions and 14 deletions

View File

@@ -111,6 +111,22 @@ export const setUserInfo = (data) => {
})
}
// @Tags SysUser
// @Summary 设置用户信息
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SysUser true "设置用户信息"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"修改成功"}"
// @Router /user/setSelfInfo [put]
export const setSelfInfo = (data) => {
return service({
url: '/user/setSelfInfo',
method: 'put',
data: data
})
}
// @Tags User
// @Summary 设置用户权限
// @Security ApiKeyAuth