const CURRENT_SERVER_URL =
  window.location.protocol + "//" + window.location.host;
const EXTERNAL_H5_HOST = CURRENT_SERVER_URL;


const serviceConfig = {
  CURRENT_SERVER_URL: CURRENT_SERVER_URL,
  EXTERNAL_H5_HOST: EXTERNAL_H5_HOST,
  BASE_URL: CURRENT_SERVER_URL,
  HTTP_REQUEST_URL: CURRENT_SERVER_URL,
  TIMEOUT: 10000,
  WALLET_NAME: "海南农综交易所",
  POINTS_CONVERT_INTERVAL: "0,20",
  ENDPOINTS: {
    price: "/api/hn/getPrice",
    homeBalance: "/api/hn/getAllBalance",
    extractBank: "/api/extract/bank",
    spreadCommission: "/api/spread/commission",
    powerExchangeSubmit: "/api/hn/redeem/power",
    bmtFlashExchangeSubmit: "/api/hn/redeem/justRedeem",
    powerExchangeMuit: "/api/hn/redeem/getMuit",
    bmtRedeemPowerRate: "/api/hn/redeem/getRedeemPowerRate",
    bmtExchangeSubmit: "/api/hn/redeem/redeem_bmt",
    getUser: "/api/mxj/api/get_user",
    transferFee: "/api/hn/transfer/getProp",
    transferUser: "/api/hn/transfer/getUserInfo",
    transferPowerSubmit: "/api/hn/transfer/transferPower",
    transferPointsSubmit: "/api/hn/transfer/transferPoint",
    transferLedger: "/api/hn/transfer/transferList",
    transferBmtrSubmit: "/api/hn/transfer/transferBmtr",
    transferBmtrFee: "/api/hn/transfer/getPropBmtr",
    transferBmtrBalance: "/api/hn/transfer/getBmtrBalance",
    transferBmtrList: "/api/hn/transfer/getBmtrList",
    walletFlowList: "/api/hn/wallet_flow/getList",
    redeemRecordList: "/api/hn/redeem/redeemList",
    coinIndex: "/api/coin/index",
    coinList: "/api/coin/list",
    userProfile: "/api/user",
    walletDetail: "/api/hn/wallet/getWalletAddress",
    walletSave: "/api/hn/wallet/saveAddress",
    withdrawRate: "/api/hn/wallet/getRate",
    withdrawSubmit: "/api/hn/wallet/withdraw",
    pointsConvertHistoryList: "/api/integral/getTransferList",
    pointsConvertAvailableList: "/api/integral/transferList",
    pointsConvertSubmit: "/api/integral/doTransfer",
    pointsConvertRecordDetail: "/api/integral/transferInfo",
    bmtrMonthPoints: "/api/mxj/api/get_month_points",
    bmtrChargeList: "/api/mxj/api/get_charge_list",
  },
};

export default serviceConfig;
