import axios from "@/assets/axios";
|
|
/**
|
* 查询所有的权限组及其下的所有权限和用户信息
|
* @returns
|
*/
|
export const getList = () => {
|
return axios({
|
method: "GET",
|
url: "permitGroup/getAllGroup"
|
})
|
}
|
/**
|
* 添加权限组
|
* @returns
|
*/
|
export const addGroup = (groupName) => {
|
return axios({
|
method: "GET",
|
url: "permitGroup/addGroup",
|
params: { groupName }
|
})
|
}
|
/**
|
* 删除权限组
|
* @returns
|
*/
|
export const delGroup = (groupId) => {
|
return axios({
|
method: "GET",
|
url: "permitGroup/delGroup",
|
params: { groupId }
|
})
|
}
|
/**
|
* 查询所有用户 列表 不分页
|
* @returns
|
*/
|
export const getUserList = () => {
|
return axios({
|
method: "GET",
|
url: "permitGroup/getAllDocUser"
|
})
|
}
|
/**
|
* 查询所有用户 列表 不分页
|
* @returns
|
*/
|
export const getAllPermit = () => {
|
return axios({
|
method: "GET",
|
url: "permitGroup/getAllPermit"
|
})
|
}
|
|
/**
|
* 权限组下 权限
|
* @returns
|
*/
|
export const opreatePermitToGroup = (data) => {
|
return axios({
|
method: "POST",
|
url: "permitGroup/opreatePermitToGroup",
|
data
|
})
|
}
|
|
/**
|
* 权限组下 用户
|
* @returns
|
*/
|
export const opreateUserToGroup = (data) => {
|
return axios({
|
method: "POST",
|
url: "permitGroup/opreateUserToGroup",
|
data
|
})
|
}
|
|
/**
|
* 编辑权限组名
|
* @returns
|
*/
|
export const updateGroup = (groupId, groupName) => {
|
return axios({
|
method: "GET",
|
url: "permitGroup/updateGroup",
|
params: { groupId, groupName }
|
})
|
}
|