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.
15 lines
412 B
15 lines
412 B
import { defHttp } from '@/utils/axios/index' |
|
import { ContentTypeEnum } from '@/enums/httpEnum' |
|
import type { UploadFileResult } from '/#/axios' |
|
|
|
export function uploadApi(data: FormData): Promise<UploadFileResult> { |
|
return defHttp.post( |
|
{ |
|
url: '/hulk-system/hulk-resource/oss/endpoint/put-file', |
|
headers: { |
|
'Content-Type': ContentTypeEnum.FORM_DATA, |
|
}, |
|
data, |
|
}, |
|
) |
|
}
|
|
|