附件上传调整
This commit is contained in:
44
src/api/attachment/attachment.js
Normal file
44
src/api/attachment/attachment.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询附件列表
|
||||
export function listAttachment(query) {
|
||||
return request({
|
||||
url: '/system/attachment/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询附件详细
|
||||
export function getAttachment(id) {
|
||||
return request({
|
||||
url: '/system/attachment/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增附件
|
||||
export function addAttachment(data) {
|
||||
return request({
|
||||
url: '/system/attachment',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改附件
|
||||
export function updateAttachment(data) {
|
||||
return request({
|
||||
url: '/system/attachment',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除附件
|
||||
export function delAttachment(id) {
|
||||
return request({
|
||||
url: '/system/attachment/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user