Files
ruoyi-plus-vben5/apps/web-antd/src/api/core/upload.ts
2024-08-20 14:19:15 +08:00

14 lines
280 B
TypeScript

import { requestClient } from '#/api/request';
export function commonUploadApi(file: Blob | File) {
return requestClient.upload('/resource/oss/upload', file);
}
/**
* 默认上传结果
*/
export interface UploadResult {
url: string;
fileName: string;
ossId: string;
}