接口调整

This commit is contained in:
2024-05-06 16:09:56 +08:00
parent 5b2ad83e57
commit 4f90bdcf21
4 changed files with 87 additions and 32 deletions

View File

@@ -1,4 +1,5 @@
import request from '@/utils/request'
import createAxios from '@/utils/request'
export function getAreaTree(data: any) {
return request({
@@ -58,4 +59,24 @@ export function deptTreeSelector() {
})
}
/**
* 部门分页
*/
export function deptList(data:any) {
return request({
url: '/user-boot/dept/list',
method: 'POST',
data
})
}
// 根据id获取所有部门信息
export function getDeptListByIds(data:any) {
return request({
url: '/user-boot/dept/getDeptListByIds',
method: 'POST',
data
})
}

View File

@@ -30,4 +30,25 @@ export function roleList(id: number) {
url: '/user-boot/role/selectRoleDetail?id=' + id,
method: 'post'
})
}
}
/**
* 全部角色
*/
export function allRoleList(data:any) {
return createAxios({
url: '/user-boot/role/allRoleList',
method: 'GET'
})
}
// 根据id获取所有角色信息
export function getRoleListByIds(data:any) {
return createAxios({
url: '/user-boot/role/getRoleListByIds',
method: 'POST',
data
})
}

View File

@@ -162,3 +162,14 @@ export function listAllUserByDeptId(data:any) {
})
}
// 根据id获取所有用户信息
export function getUserListByIds(data:any) {
return request({
url: '/user-boot/user/getUserListByIds',
method: 'POST',
data
})
}