app.js
1.7 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
import request from '@/utils/request'
// 查询应用类别列表
export function getTypeList(params) {
return request({
url: '/dh/type/list',
method: 'get',
params
})
}
// 查询应用类别列表无需token
export function getNoTokenTypeList(params) {
return request({
url: '/dh/type/listFrontType',
method: 'get',
params
})
}
// 获取树形类别结构数据
export function getTreeTypeList(params) {
return request({
url: '/dh/type/typeTree',
method: 'get',
params
})
}
// 修改应用类别信息
export function updateType(data) {
return request({
url: '/dh/type',
method: 'put',
data: data
})
}
// 添加应用类别信息
export function addType(data) {
return request({
url: '/dh/type',
method: 'post',
data: data
})
}
// 删除应用类别信息
export function delType(id) {
return request({
url: '/dh/type/' + id,
method: 'delete'
})
}
// 查询应用列表
export function getAppList(params) {
return request({
url: '/dh/app/list',
method: 'get',
params
})
}
// 查询应用列表无需token
export function getNoTokenAppList(params) {
return request({
url: '/dh/app/listFrontApp',
method: 'get',
params
})
}
// 查询应用详情
export function getAppDetail(id) {
return request({
url: '/dh/app/' + id,
method: 'get'
})
}
// 修改应用信息
export function updateApp(data) {
return request({
url: '/dh/app',
method: 'put',
data: data
})
}
// 添加应用信息
export function addApp(data) {
return request({
url: '/dh/app',
method: 'post',
data: data
})
}
// 删除应用信息
export function delApp(id) {
return request({
url: '/dh/app/' + id,
method: 'delete'
})
}