forked from qiushanhe/dm-manage-web
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
714 B
45 lines
714 B
2 years ago
|
import request from '@/utils/request'
|
||
|
|
||
|
// 查询文件列表
|
||
|
export function listFile(query) {
|
||
|
return request({
|
||
|
url: '/sch/file/list',
|
||
|
method: 'get',
|
||
|
params: query
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 查询文件详细
|
||
|
export function getFile(fileId) {
|
||
|
return request({
|
||
|
url: '/sch/file/' + fileId,
|
||
|
method: 'get'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 新增文件
|
||
|
export function addFile(data) {
|
||
|
return request({
|
||
|
url: '/sch/file',
|
||
|
method: 'post',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 修改文件
|
||
|
export function updateFile(data) {
|
||
|
return request({
|
||
|
url: '/sch/file',
|
||
|
method: 'put',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
// 删除文件
|
||
|
export function delFile(fileId) {
|
||
|
return request({
|
||
|
url: '/sch/file/' + fileId,
|
||
|
method: 'delete'
|
||
|
})
|
||
|
}
|