1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- import service from '@/utils/request'
- // @Router /authority/getAuthorityList [post]
- export const getAuthorityList = (data) => {
- return service({
- url: '/authority/getAuthorityList',
- method: 'post',
- data
- })
- }
- // @Summary 删除角色
- // @Security ApiKeyAuth
- // @accept application/json
- // @Produce application/json
- // @Param data body {authorityId uint} true "删除角色"
- // @Success 200 {string} json "{"success":true,"data":{},"msg":"获取成功"}"
- // @Router /authority/deleteAuthority [post]
- export const deleteAuthority = (data) => {
- return service({
- url: '/authority/deleteAuthority',
- method: 'post',
- data
- })
- }
- // @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/createAuthority [post]
- export const createAuthority = (data) => {
- return service({
- url: '/authority/createAuthority',
- method: 'post',
- 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
- // @Produce application/json
- // @Param data body sysModel.SysAuthority true "设置角色资源权限"
- // @Success 200 {string} string "{"success":true,"data":{},"msg":"设置成功"}"
- // @Router /authority/setDataAuthority [post]
- export const setDataAuthority = (data) => {
- return service({
- url: '/authority/setDataAuthority',
- method: 'post',
- data
- })
- }
- // @Summary 修改角色
- // @Security ApiKeyAuth
- // @accept application/json
- // @Produce application/json
- // @Param data body model.SysAuthority true "修改角色"
- // @Success 200 {string} string "{"success":true,"data":{},"msg":"设置成功"}"
- // @Router /authority/setDataAuthority [post]
- export const updateAuthority = (data) => {
- return service({
- url: '/authority/updateAuthority',
- method: 'put',
- data
- })
- }
|