提交 | 用户 | 时间
|
820397
|
1 |
import request from '@/config/axios' |
H |
2 |
|
|
3 |
export type UserGroupVO = { |
|
4 |
id: number |
|
5 |
name: string |
|
6 |
description: string |
|
7 |
userIds: number[] |
|
8 |
status: number |
|
9 |
remark: string |
|
10 |
createTime: string |
|
11 |
} |
|
12 |
|
|
13 |
// 创建用户组 |
|
14 |
export const createUserGroup = async (data: UserGroupVO) => { |
|
15 |
return await request.post({ |
|
16 |
url: '/bpm/user-group/create', |
|
17 |
data: data |
|
18 |
}) |
|
19 |
} |
|
20 |
|
|
21 |
// 更新用户组 |
|
22 |
export const updateUserGroup = async (data: UserGroupVO) => { |
|
23 |
return await request.put({ |
|
24 |
url: '/bpm/user-group/update', |
|
25 |
data: data |
|
26 |
}) |
|
27 |
} |
|
28 |
|
|
29 |
// 删除用户组 |
|
30 |
export const deleteUserGroup = async (id: number) => { |
|
31 |
return await request.delete({ url: '/bpm/user-group/delete?id=' + id }) |
|
32 |
} |
|
33 |
|
|
34 |
// 获得用户组 |
|
35 |
export const getUserGroup = async (id: number) => { |
|
36 |
return await request.get({ url: '/bpm/user-group/get?id=' + id }) |
|
37 |
} |
|
38 |
|
|
39 |
// 获得用户组分页 |
|
40 |
export const getUserGroupPage = async (params) => { |
|
41 |
return await request.get({ url: '/bpm/user-group/page', params }) |
|
42 |
} |
|
43 |
|
|
44 |
// 获取用户组精简信息列表 |
|
45 |
export const getUserGroupSimpleList = async (): Promise<UserGroupVO[]> => { |
|
46 |
return await request.get({ url: '/bpm/user-group/simple-list' }) |
|
47 |
} |