import serviceLbcloud from './serviceLbcloud'
|
|
// 多文件上传api
|
export class UploadFileApi {
|
fileUpload = (params, config = {}) => {
|
const axiosConfig = {
|
url: '/lbcloud-file/file/batch/upload/file',
|
method: 'post',
|
data: params,
|
onUploadProgress: config.onUploadProgress
|
}
|
return serviceLbcloud(axiosConfig)
|
}
|
|
removeFile = (params) => {
|
return serviceLbcloud.post(`/lbcloud-file/file/remove/file?key=${params.key}`)
|
}
|
|
/**
|
* 通过文件的businessId,查询对应的文件
|
* @param {*} params
|
* @returns
|
*/
|
findFileInfoByBusinessId = (params) => {
|
return serviceLbcloud.post('lbcloud-file/file/metadata-by-biz-codes', [params])
|
}
|
}
|
export default new UploadFileApi()
|