Your Name
2022-07-05 b222b2923e4759a86ccae30a85d6653a4b4046f8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import request from '/@/utils/request';
 
export function userApi() {
    return {
        getUserList: (data: any) => {
            return request({
                url: `/account/page/list`,
                method: 'post',
                data:data
            });
        },
        addUser: (data: object) => {
            return request({
                url: `/account/add`,
                method: 'post',
                data:data
            });
        },
        modUser: (data: object) => {
            return request({
                url: `/account/mod`,
                method: 'post',
                data:data
            });
        },
        getUserLByDepartment: (depId : number | null) => {
            return request({
                url: `/account/dep/list?depId=${depId}`,
                method: 'get',
            });
        },
    };
}