用户权限更改简单实现

This commit is contained in:
pixel
2019-10-09 23:11:10 +08:00
parent b3c5dfe952
commit 4127cf9fda
2 changed files with 48 additions and 5 deletions

View File

@@ -38,4 +38,21 @@ export const getUserList = (data) => {
method: 'post',
data: data
})
}
// @Tags User
// @Summary 设置用户权限
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body api.SetUserAuth true "设置用户权限"
// @Success 200 {string} json "{"success":true,"data":{},"msg":"修改成功"}"
// @Router /user/setUserAuthority [post]
export const setUserAuthority = (data) => {
return service({
url: "/user/setUserAuthority",
method: 'post',
data: data
})
}