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.

44 lines
785 B

import fileService from '~/utils/fileRequest'
import service from '~/utils/request'
export const updateAttachment = (data) => {
return service({
url: '/api/v1/attachment',
method: 'put',
data,
})
}
export const deleteAttachment = (params) => {
return service({
url: '/api/v1/attachment',
method: 'delete',
params,
})
}
export const getAttachment = (params) => {
return service({
url: '/api/v1/attachment',
method: 'get',
params,
})
}
export const listAttachment = (params) => {
return service({
url: '/api/v1/attachment/list',
method: 'get',
params,
})
}
export const uploadDocument = (data, option) => {
return fileService({
url: '/api/v1/upload/document',
method: 'post',
data,
...option,
})
}