mirror of
https://github.com/veops/cmdb.git
synced 2025-08-26 00:36:28 +08:00
32 lines
676 B
JavaScript
32 lines
676 B
JavaScript
import { axios } from '@/utils/request'
|
|
|
|
export function postImageFile(parameter) {
|
|
return axios({
|
|
url: '/common-setting/v1/file',
|
|
method: 'post',
|
|
data: parameter,
|
|
})
|
|
}
|
|
|
|
export function getFileData(data_type) {
|
|
return axios({
|
|
url: `/common-setting/v1/data/${data_type}`,
|
|
method: 'get',
|
|
})
|
|
}
|
|
|
|
export function addFileData(data_type, data) {
|
|
return axios({
|
|
url: `/common-setting/v1/data/${data_type}`,
|
|
method: 'post',
|
|
data,
|
|
})
|
|
}
|
|
|
|
export function deleteFileData(data_type, id) {
|
|
return axios({
|
|
url: `/common-setting/v1/data/${data_type}/${id}`,
|
|
method: 'delete',
|
|
})
|
|
}
|