提交
This commit is contained in:
44
src/api/sch/file.js
Normal file
44
src/api/sch/file.js
Normal file
@@ -0,0 +1,44 @@
|
||||
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'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user