马宇豪
2025-03-04 1b9fea7d4af68d8f933b2dc42bf6084b9646f64c
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import request from '/@/utils/request';
 
export function dutyApi() {
    return {
        // v1
        getDutyList: (data: any) => {
            return request({
                url: import.meta.env.VITE_API_URL + `/position/page/list`,
                method: 'post',
                data: data
            });
        },
        addDuty: (data: any) => {
            return request({
                url: import.meta.env.VITE_API_URL + `/position/add`,
                method: 'post',
                data: data
            });
        },
        modDuty: (data: any) => {
            return request({
                url: import.meta.env.VITE_API_URL + `/position/mod`,
                method: 'post',
                data: data
            });
        },
        delDuty: (data: any) => {
            return request({
                url: import.meta.env.VITE_API_URL + `/position/del`,
                method: 'post',
                data: data
            });
        },
        getAllList: (data: any) => {
            return request({
                url: import.meta.env.VITE_API_URL + `/position/list`,
                method: 'post',
                data: data
            });
        }
        // getAllUser: () => {
        //     return request({
        //         url: import.meta.env.VITE_API_URL + `/account/list`,
        //         method: 'get'
        //     });
        // }
    };
}