var apiHost = "";
var domain = "";
let env = process.env.NODE_ENV || "";
if (env == "production") {
  apiHost = "https://downloader.rongketech.com/api";
  domain = 'https://downloader.rongketech.com/api'
} else if (env == "test") {
  apiHost = "https://testapp.rongketech.com";
} else {
  apiHost = "http://39.107.245.36:8081";
  domain = '/api'
}
console.log(
  `-----env[${env}]-----, apiHost[${apiHost}]`
);
const config = {
  apiHost,
  domain,

  login: `${domain}/user/login`,
  register: `${domain}/user/register`,
  uploadBatchList: `${domain}/uploadBatch/pageList`,
  uploadBatchQueryUpload: `${domain}/uploadBatch/queryUpload`,
  uploadBatchDelete: `${domain}/uploadBatch/delete`,
  uploadDetailList: `${domain}/uploadDetail/pageList`,
  uploadBatchFileUpload: `${domain}/uploadBatch/fileUpload`,
  uploadDetailTotalNum: `${domain}/uploadDetail/totalNum`,
  uploadDetailDeleteAll: `${domain}/uploadDetail/deleteAll`,
  uploadDetailDelete: `${domain}/uploadDetail/delete`,
  downLoadStatus: `${domain}/uploadDetail/downLoadStatus`,
  fileUploadDetail: `${domain}/uploadBatch/fileUploadDetail`,
  queryFileAll: `${domain}/uploadBatch/queryFileAll`,
  detailInfo: `${domain}/uploadDetail/detailInfo`,
};

export default config;
