提交 | 用户 | 时间
|
e57a89
|
1 |
import request from '@/utils/request' |
懒 |
2 |
|
|
3 |
// 查询参数列表 |
|
4 |
export function listConfig(query) { |
|
5 |
return request({ |
|
6 |
url: '/system/config/list', |
|
7 |
method: 'get', |
|
8 |
params: query |
|
9 |
}) |
|
10 |
} |
|
11 |
|
|
12 |
// 查询参数详细 |
|
13 |
export function getConfig(configId) { |
|
14 |
return request({ |
|
15 |
url: '/system/config/' + configId, |
|
16 |
method: 'get' |
|
17 |
}) |
|
18 |
} |
|
19 |
|
|
20 |
// 根据参数键名查询参数值 |
|
21 |
export function getConfigKey(configKey) { |
|
22 |
return request({ |
|
23 |
url: '/system/config/configKey/' + configKey, |
|
24 |
method: 'get' |
|
25 |
}) |
|
26 |
} |
|
27 |
|
|
28 |
// 新增参数配置 |
|
29 |
export function addConfig(data) { |
|
30 |
return request({ |
|
31 |
url: '/system/config', |
|
32 |
method: 'post', |
|
33 |
data: data |
|
34 |
}) |
|
35 |
} |
|
36 |
|
|
37 |
// 修改参数配置 |
|
38 |
export function updateConfig(data) { |
|
39 |
return request({ |
|
40 |
url: '/system/config', |
|
41 |
method: 'put', |
|
42 |
data: data |
|
43 |
}) |
|
44 |
} |
|
45 |
|
|
46 |
// 删除参数配置 |
|
47 |
export function delConfig(configId) { |
|
48 |
return request({ |
|
49 |
url: '/system/config/' + configId, |
|
50 |
method: 'delete' |
|
51 |
}) |
|
52 |
} |
|
53 |
|
|
54 |
// 刷新参数缓存 |
|
55 |
export function refreshCache() { |
|
56 |
return request({ |
|
57 |
url: '/system/config/refreshCache', |
|
58 |
method: 'delete' |
|
59 |
}) |
|
60 |
} |