53 lines
926 B
JavaScript
53 lines
926 B
JavaScript
|
import request from '@/utils/request'
|
||
|
|
||
|
// 查询文件列表列表
|
||
|
export function listFileList(query) {
|
||
|
return request({
|
||
|
url: '/system/fileList/list',
|
||
|
method: 'get',
|
||
|
params: query
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 查询七牛云文件域名
|
||
|
export function getQNdomain() {
|
||
|
return request({
|
||
|
url: '/qiniufile/getQNdomain',
|
||
|
method: 'get'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 查询文件列表详细
|
||
|
export function getFileList(id) {
|
||
|
return request({
|
||
|
url: '/system/fileList/' + id,
|
||
|
method: 'get'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 新增文件列表
|
||
|
export function addFileList(data) {
|
||
|
return request({
|
||
|
url: '/system/fileList',
|
||
|
method: 'post',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 修改文件列表
|
||
|
export function updateFileList(data) {
|
||
|
return request({
|
||
|
url: '/system/fileList',
|
||
|
method: 'put',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 删除文件列表
|
||
|
export function delFileList(id) {
|
||
|
return request({
|
||
|
url: '/system/fileList/' + id,
|
||
|
method: 'delete'
|
||
|
})
|
||
|
}
|