import { defHttp } from '/@/utils/http/axios';
import { UploadFileParams } from '/#/axios';
import { getAppEnvConfig } from '/@/utils/env';

const { VITE_GLOB_UPLOAD_URL } = getAppEnvConfig();

/**
 * 上传
 */
export const upload = (params: UploadFileParams) => defHttp.uploadFile({ url: VITE_GLOB_UPLOAD_URL }, params);
