mirror of
https://github.com/veops/cmdb.git
synced 2025-09-20 12:29:20 +08:00
Sunny_CMDB
--- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/veops/cmdb?shareId=XXXX-XXXX-XXXX-XXXX).
This commit is contained in:
@@ -29,3 +29,33 @@ export function deleteFileData(data_type, id) {
|
||||
method: 'delete',
|
||||
})
|
||||
}
|
||||
|
||||
export function postUploadFile(parameter) {
|
||||
return axios({
|
||||
url: '/common-setting/v1/upload-file',
|
||||
method: 'post',
|
||||
data: parameter,
|
||||
})
|
||||
}
|
||||
|
||||
export function getUploadFile(file_id) {
|
||||
return axios({
|
||||
url: `/common-setting/v1/upload-file/${file_id}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
export function postReviewFile(parameter) {
|
||||
return axios({
|
||||
url: '/common-setting/v1/review-file',
|
||||
method: 'post',
|
||||
data: parameter,
|
||||
})
|
||||
}
|
||||
|
||||
export function getReviewFile(file_id) {
|
||||
return axios({
|
||||
url: `/common-setting/v1/review-file/${file_id}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user