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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import request from '@/utils/request'
// 查询模型分类列表
export function listData(query) {
return request({
url: '/system/model/category/list',
method: 'get',
params: query
})
}
// 查询模型分类
export function getCategoryAll() {
return request({
url: '/system/model/category/all',
method: 'get'
})
}
// 添加
export function addCategory(data) {
return request({
url: '/system/model/category/add',
method: 'post',
data: data
})
}
// 查询模型分类信息
export function getCategory(id) {
return request({
url: '/system/model/category/edit?id='+id,
method: 'get',
})
}
// 查询模型分类列表
export function sortCategory(data) {
return request({
url: '/system/model/category/sort',
method: 'post',
data: {sorts:data}
})
}
// 删除模型分类列表
export function delCategory(data) {
return request({
url: '/system/model/category/delete',
method: 'delete',
data: {ids:data}
})
}
// 修改
export function updateCategory(data) {
return request({
url: '/system/model/category/edit',
method: 'post',
data: data
})
}