import { defHttp } from '/@/utils/http/axios';
import { FileUploadResponse } from '/@/api/oss/FileUploadResponse';

enum Api {
  BaseUploadUrl = '/oss/upload',
}

export const upload = (file) => {
  return defHttp.post<FileUploadResponse>({ url: Api.BaseUploadUrl, params: file });
};
