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

// enum Api {
//   BaseUploadUrl = '/oss/upload',
// }
const debuggerApi = { debuggerApi: true };
export const upload = (file) => {
  // return defHttp.post<FileUploadResponse>({ url: Api.BaseUploadUrl, params: file });
  return defHttp.post<FileUploadResponse>({ ...debuggerApi ,url:  '/file/upfiles', params: file });

};
export const uploadT = (file) => {
  return defHttp.post<FileUploadResponse>({ ...debuggerApi ,url:  '/file/upfiles', params: file });
};

export const uploadDelete  = (ids: string) => {
  return defHttp.delete<FileUploadResponse>({ ...debuggerApi ,url:  `/file/deleteByIds?ids=${ids}`,  });
};
 
