zhouwx
2024-12-04 80c8993820fc3f958397bebe9dbd72be6a449c55
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
import request from '/@/utils/request';
 
export function materialApi() {
    return {
        getMaterialByList: (params: object) => {
            return request({
                url: import.meta.env.VITE_API_URL + '/basic/select/selectStuffPage',
                method: 'post',
                data: params
            });
        },
 
        addMaterial: (params: object) => {
            return request({
                url: import.meta.env.VITE_API_URL + '/basic/insert/insertStuff',
                method: 'post',
                data: params
            });
        },
 
        modMaterial: (params: object) => {
            return request({
                url: import.meta.env.VITE_API_URL + '/basic/update/updateStuff',
                method: 'post',
                data: params
            });
        },
 
        deleteMaterialById: (params: object) => {
            return request({
                url: import.meta.env.VITE_API_URL + '/basic/delete/deleteStuff',
                method: 'post',
                data: params
            });
        },
 
        getAllMaterial: () => {
            return request({
                url: import.meta.env.VITE_API_URL + '/basic/select/listStuff',
                method: 'get',
            });
        },
    };
}