董国庆
2 天以前 63ecd83a0f17442cb1ce3b497f4c7932fda4177f
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
import { request } from '@umijs/max';
 
// 列表
export const getList = async (data) => {
    return request(`/api/huacheng-sangeshenbian/problemType/list`, {
        method: 'GET',
        params:data
    });
}
 
 
// 添加dept
export const add = async (data) => {
    return request('/api/huacheng-sangeshenbian/problemType/add', {
        method: 'POST',
        data,
    });
}
 
// 添加dept
export const Edit = async (data) => {
    return request('/api/huacheng-sangeshenbian/problemType/edit', {
        method: 'POST',
        data,
    });
}
 
 
// 批量删除dept
export const del = async (id) => {
    return request(`/api/huacheng-sangeshenbian/problemType/delete/${id}`, {
        method: 'DELETE',
        // data
    });
}