提交 | 用户 | 时间
|
722af2
|
1 |
import request from '@/utils/request' |
X |
2 |
|
|
3 |
// 查询对象存储配置列表 |
|
4 |
export function listOssConfig(query) { |
|
5 |
return request({ |
|
6 |
url: '/system/oss/config/list', |
|
7 |
method: 'get', |
|
8 |
params: query |
|
9 |
}) |
|
10 |
} |
|
11 |
|
|
12 |
// 查询对象存储配置详细 |
|
13 |
export function getOssConfig(ossConfigId) { |
|
14 |
return request({ |
|
15 |
url: '/system/oss/config/' + ossConfigId, |
|
16 |
method: 'get' |
|
17 |
}) |
|
18 |
} |
|
19 |
|
|
20 |
// 新增对象存储配置 |
|
21 |
export function addOssConfig(data) { |
|
22 |
return request({ |
|
23 |
url: '/system/oss/config', |
|
24 |
method: 'post', |
|
25 |
data: data |
|
26 |
}) |
|
27 |
} |
|
28 |
|
|
29 |
// 修改对象存储配置 |
|
30 |
export function updateOssConfig(data) { |
|
31 |
return request({ |
|
32 |
url: '/system/oss/config', |
|
33 |
method: 'put', |
|
34 |
data: data |
|
35 |
}) |
|
36 |
} |
|
37 |
|
|
38 |
// 删除对象存储配置 |
|
39 |
export function delOssConfig(ossConfigId) { |
|
40 |
return request({ |
|
41 |
url: '/system/oss/config/' + ossConfigId, |
|
42 |
method: 'delete' |
|
43 |
}) |
|
44 |
} |
|
45 |
|
|
46 |
// 对象存储状态修改 |
|
47 |
export function changeOssConfigStatus(ossConfigId, status, configKey) { |
|
48 |
const data = { |
|
49 |
ossConfigId, |
|
50 |
status, |
|
51 |
configKey |
|
52 |
} |
|
53 |
return request({ |
|
54 |
url: '/system/oss/config/changeStatus', |
|
55 |
method: 'put', |
|
56 |
data: data |
|
57 |
}) |
|
58 |
} |