add 增加 OSS 模块业务代码

This commit is contained in:
疯狂的狮子li
2021-07-18 20:27:37 +08:00
parent fdd8c65b36
commit 00b9043915
9 changed files with 501 additions and 24 deletions

View File

@ -0,0 +1,35 @@
import request from '@/utils/request'
// 查询OSS云存储列表
export function listOss(query) {
return request({
url: '/system/oss/list',
method: 'get',
params: query
})
}
// 上传OSS云存储
export function addOss(data) {
return request({
url: '/system/oss/upload',
method: 'post',
data: data
})
}
// 下载OSS云存储
export function downloadOss(ossId) {
return request({
url: '/system/oss/download/' + ossId,
method: 'get'
})
}
// 删除OSS云存储
export function delOss(ossId) {
return request({
url: '/system/oss/' + ossId,
method: 'delete'
})
}