1. authority.js export const copyAuthority

2. authority.vue  add a method
This commit is contained in:
sun_song_1203
2020-04-24 00:25:46 +08:00
parent 8034ca5e13
commit 3a3be3b23f
2 changed files with 54 additions and 3 deletions

View File

@@ -46,6 +46,22 @@ export const createAuthority = (data) => {
})
}
// @Tags authority
// @Summary 拷贝角色
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body api.CreateAuthorityPatams true "拷贝角色"
// @Success 200 {string} json "{"success":true,"data":{},"msg":"拷贝成功"}"
// @Router /authority/copyAuthority [post]
export const copyAuthority = (data) => {
return service({
url: "/authority/copyAuthority",
method: 'post',
data
})
}
// @Summary 设置角色资源权限
// @Security ApiKeyAuth
// @accept application/json