import { defHttp } from '/@/utils/http/axios';
import { getAppEnvConfig } from '/@/utils/env';
const { VITE_GLOB_BASE_IMITATE } = getAppEnvConfig();
enum BaseURL {
  url = '/cdy_api',
  url1 = VITE_GLOB_BASE_IMITATE,
}
enum API {
  WEATH_FORECAST = `${BaseURL.url}/hydro_screen_api/weath_forecast`,
  RAIN_LIVE_IMG = `${BaseURL.url}/hydro_screen_api/rain_live_img`,
  GET_ALL_COM = `${BaseURL.url}/hydro_biz_api/get_all_com`,
  GET_RIVER_TREE = `${BaseURL.url}/hydro_biz_api/get_river_tree`,
  GETALLCOMDATA = `${BaseURL.url}/hydro_biz_api/get_all_com_data`,
  GETPARSELOG = `${BaseURL.url}/hydro_biz_api/get_parse_log`,
  GET_CJ_DATA = `${BaseURL.url}/hydro_biz_api/get_cj_data`,
  REAL_RAIN = `${BaseURL.url}/hydro_biz_api/real_rain`,
  HISTORY_RAIN = `${BaseURL.url}/hydro_screen_api/monitor_info`,
  REAL_WATER = `${BaseURL.url}/hydro_biz_api/real_water`,
  WATER_REGIMEN = `${BaseURL.url}/hydro_screen_api/water_regimen`,
  MONITOR_INFO = `${BaseURL.url}/hydro_screen_api/monitor_info`,
  REAL_WEATHER = `${BaseURL.url}/hydro_biz_api/real_weather`,
  ST_DETAIL_INFO = `${BaseURL.url}/hydro_screen_api/st_detail_info`,
  HISTORY_RAIN_LIST = `${BaseURL.url}/hydro_biz_api/history_rain`,
  DATA_HIST_RAIN_STATIOS = `${BaseURL.url}/hydro_biz_api/data_hist_rain_stations`,
  HISTORY_TIME_INQUIRE = `${BaseURL.url}/hydro_biz_api/history_time_inquire`,
  HISTORY_WATER = `${BaseURL.url}/hydro_biz_api/history_water`,
  DATA_HIST_WEA_ELEMENTS = `${BaseURL.url}/hydro_biz_api/data_hist_wea_elements`,
  DATA_HIST_WEA_STATIONS = `${BaseURL.url}/hydro_biz_api/data_hist_wea_stations`,
  DATA_HIST_QUERY_ONE_ELEMENT = `${BaseURL.url}/hydro_biz_api/data_hist_query_one_element`,
  DATA_HIST_QUERY_ONE_STATION = `${BaseURL.url}/hydro_biz_api/data_hist_query_one_station`,
  RELATION_DATA = `${BaseURL.url}/hydro_biz_api/relation_data`,
  TABLE_UPLOAD = `${BaseURL.url}/hydro_biz_api/table_upload`,
  NEW_STATION = `${BaseURL.url}/hydro_biz_api/new_station`,
  UPDATE_TREE = `${BaseURL.url}/hydro_biz_api/update_tree`,
  DELETE_TREE = `${BaseURL.url}/hydro_biz_api/delete_tree`,
  SENSOR_TABLE = `${BaseURL.url}/hydro_biz_api/sensor_table`,
  STATION_TABLE = `${BaseURL.url}/hydro_biz_api/station_table`,
  UPLOAD_STA_PIC = `${BaseURL.url}/hydro_biz_api/upload_sta_pic`,
  DATA_ALL_ELEMENTS = `${BaseURL.url}/hydro_biz_api/data_all_elements`,
  MANY_ST_ANALYZE = `${BaseURL.url}/hydro_biz_api/many_st_analyze`,
  SINGLE_ST_ANALYZE = `${BaseURL.url}/hydro_biz_api/single_st_analyze`,
  ST_STATISTICS = `${BaseURL.url}/hydro_biz_api/st_statistics`,
  DCHAR_LIST = `${BaseURL.url}/hydro_biz_api/dchar_list`,
  SIMULATETREE = `${BaseURL.url1}/data_show/simulate_tree`,
  FCODE_SHOW = `${BaseURL.url1}/param_show/fcode_show`,
  ST_LIST = `${BaseURL.url}/hydro_biz_api/st_list`,
  RAIN_FLOW_SHOW = `${BaseURL.url1}/data_show/rain_flow_show`,
  INTERMEDIATE_PARAM_SHOW = `${BaseURL.url1}/param_show/intermediate_param_show`,
  INIT_PARAM_SHOW = `${BaseURL.url1}/param_show/init_param_show`,
  FLOOD_FORECAST = `${BaseURL.url1}/data_show/flood_simulate_forecast`,
  INIT_THRESHOLD = `${BaseURL.url1}/param_show/init_param_threshold`,
  FLOOD_UPDATE = `${BaseURL.url1}/param_update/flood_param_update`,
  TRANSECT_TREE = `${BaseURL.url1}/data_show/transect_tree`,
  FCODE_CAL_TREE = `${BaseURL.url1}/param_show/fcode_cal_show`,
  FCODE_DELTE = `${BaseURL.url1}/param_delete/fcode_delete`,
  DETAILS_SHOW = `${BaseURL.url1}/data_show/fcode_details_show`,
  WATER_STATIONS = `${BaseURL.url}/hydro_biz_api_1/data_hist_water_stations`,
  PID_SELECT = `${BaseURL.url1}/param_show/pid_select`,
  FCODE_ADD = `${BaseURL.url1}/param_add/fcode_add`,
  FCODE_UPDATE = `${BaseURL.url1}/param_update/fcode_update`,
  SCHEME_ADD_SPINNER = `${BaseURL.url1}/param_add/flood_forecast_scheme_add_spinner`,
  FORECAST_ARTIFICAL = `${BaseURL.url1}/data_show/flood_forecast_artifical`,
  REAULT_WRITE = `${BaseURL.url1}/param_write/flood_forecast_result_write`,
  GET_PROPERTIES = `${BaseURL.url}/hydro_biz_api/get_properties`,
  AUTO_SHOW = `${BaseURL.url1}/data_show/flood_forecast_auto_show`,
  TRANSECT_DETAILS = `${BaseURL.url1}/data_show/transect_details`,
  SCHEME_SHOW = `${BaseURL.url1}/data_show/flood_forecast_scheme_show`,
  SCHEME_SPINNER = `${BaseURL.url1}/param_show/flood_forecast_scheme_spinner`,
  SCHEME_UPDATE = `${BaseURL.url1}/param_update/flood_forecast_scheme_update`,
  SINGLE_DELETE = `${BaseURL.url1}/param_delete/flood_forecast_scheme_single_delete`,
  SCHEME_ADD_SPONNER = `${BaseURL.url1}/param_add/flood_forecast_scheme_add_spinner`,
  SCHEME_ADD_PID = `${BaseURL.url1}/param_add/flood_forecast_scheme_add_pid`,
  INIT_PARAM_ADD_SHOW = `${BaseURL.url1}/param_show/init_param_add_show`,
  ADD_FORECAST_FLOOD = `${BaseURL.url1}/param_add/flood_forecast_scheme_add`,
  AUTO_CONFIG_SHOW = `${BaseURL.url1}/param_show/auto_config_show`,
  AUTOCONFIG_UPDATA = `${BaseURL.url1}/param_update/autoconfig_update`,
  BASE_CONFIG_SHOW = `${BaseURL.url1}/param_show/base_config_show`,
  BASE_CONFIG_UPDATE = `${BaseURL.url1}/param_update/base_config_update`,
  HANGDUING_CONFIG_SHOW = `${BaseURL.url1}/param_show/data_hangding_config_show`,
  HANGDUING_CONFIG_UPDATE = `${BaseURL.url1}/param_update/data_hangding_config_update`,
  CODE_CONFIG_SHOW = `${BaseURL.url1}/param_show/station_code_config_show`,
  STATION_CODE_UPDATA = `${BaseURL.url1}/param_update/station_code_config_update`,
  STATION_CODE_ADD = `${BaseURL.url1}/param_add/station_code_add`,
  STATION_CODE_DELETE = `${BaseURL.url1}/param_delete/station_code_delete`,
  FCODE_ADD_CAL = `${BaseURL.url1}/param_add/fcode_add_cal`,
  REGRESSION_PARAM_SHOW = `${BaseURL.url1}/param_show/linear_regression_param_show`,
  CORRESPONDING = `${BaseURL.url1}/data_show/flow_corresponding_forecast`,
  REGRSSION_UPDATE = `${BaseURL.url1}/param_update/linear_regression_param_update`,
  CORRESPONDING_OPTIMAZE = `${BaseURL.url1}/param_update/flow_corresponding_param_optimaze`,
  HIST_COMPUTE = `${BaseURL.url}/hydro_biz_api/data_hist_compute`,
  DATA_MODIFY = `${BaseURL.url}/hydro_biz_api/data_modify`,
  FORECAST_SCHEME = `${BaseURL.url1}/param_show/flood_forecast_scheme_add_intermediate_param_show`,
  REAL_WATER_ZQ = `${BaseURL.url}/hydro_biz_api/real_water_zq`,
  SCHEME_ADD_MSKNUM = `${BaseURL.url1}/param_show/flood_forecast_scheme_add_msknum`,
  FORECAST_HOUR = `${BaseURL.url1}/param_show/init_forecast_hour`,
  JIANBAO_TYPE = `${BaseURL.url}/hydro_biz_api/jianbao_type`,
  JIANBAO_PIC = `${BaseURL.url}/hydro_biz_api/jianbao_pic`,
  JIANBAO_PREVIEW = `${BaseURL.url}/hydro_biz_api/jianbao_preview`,
  NEW_JIANBAO = `${BaseURL.url}/hydro_biz_api/new_jianbao`,
  MODIFY_JIANBAO = `${BaseURL.url}/hydro_biz_api/modify_jianbao`,
  JIANBAO_TEMPLATE = `${BaseURL.url}/hydro_biz_api/jianbao_template`,
  JIANBAO_GENERATE = `${BaseURL.url}/hydro_biz_api/jianbao_generate`,
  DELETE_JIANBAO = `${BaseURL.url}/hydro_biz_api/delete_jianbao`,
  REGRESSION_LINEAR = `${BaseURL.url1}/param_update/linear_regression_scheme_param_update`,
  REGRESSION_LINEARDEL = `${BaseURL.url1}/param_delete/linear_regression_scheme_param_delete`,
  FORECAST_SCHEME_ADD = `${BaseURL.url1}/param_add/liner_forecast_scheme_add`,
  MONITORING_STATION = `${BaseURL.url}/hydro_biz_api/Monitoring_Station`,
  HISTORY_RAIN2 = `${BaseURL.url}/hydro_biz_api/history_rain_2`

}
// 阻止是否携带/api和yt
const BaseData = {
  isSw: true,
  joinPrefix: false,
  apiUrl: false,
};
// 获取天气预报
export const getWeathForecast = (params) => {
  return defHttp.get(
    {
      url: API.WEATH_FORECAST,
    },
    BaseData
  );
};
// 获取雷达，云图，气象图RAIN_LIVE_IMG
export const getRainLiveImg = (params) => {
  return defHttp.get(
    {
      url: API.RAIN_LIVE_IMG,
    },
    BaseData
  );
};
//采集监视--信道
export const getAllCom = (params) => {
  return defHttp.get(
    {
      url: API.GET_ALL_COM,
    },
    BaseData
  );
};
// 遥测站数据
export const getRiverTree = (params) => {
  return defHttp.get(
    {
      url: API.GET_RIVER_TREE,
    },
    BaseData
  );
};

// 获取信道子节点
export const getAllComData = (params) => {
  return defHttp.post(
    {
      url: API.GETALLCOMDATA,
      params,
    },
    BaseData
  );
};
// 报文解析日志:
export const getParseLog = (params) => {
  return defHttp.get(
    {
      url: API.GETPARSELOG,
    },
    BaseData
  );
};
export const getCjData = (params) => {
  return defHttp.post(
    {
      url: API.GET_CJ_DATA,
      params,
    },
    BaseData
  );
};
// 雨情实时数据查询
export const getRealRain = (params) => {
  return defHttp.get(
    {
      url: API.REAL_RAIN,
    },
    BaseData
  );
};
// 雨情历史数据查询
export const historyRain = (params) => {
  return defHttp.post(
    {
      url: API.HISTORY_RAIN,
      params,
    },
    BaseData
  );
};
//水情查询
export const realWsaters = (params) => {
  return defHttp.get(
    {
      url: API.REAL_WATER,
      params,
    },
    BaseData
  );
};
// 查询水位流量过程线
export const waterRegimen = (params) => {
  return defHttp.post(
    {
      url: API.WATER_REGIMEN,
      params,
    },
    BaseData
  );
};
// 获取水位（7）测站详情->监测信息
export const getMonitorInfo = (params) => {
  return defHttp.post(
    {
      url: API.MONITOR_INFO,
      params,
    },
    BaseData
  );
};
// 获取气象查询
export const getRealWeather = (params) => {
  return defHttp.post(
    {
      url: API.REAL_WEATHER,
      params,
    },
    BaseData
  );
};
// 获取所有测站ST_DETAIL_INFO
export const stDetailInfo = (params) => {
  return defHttp.get(
    {
      url: API.ST_DETAIL_INFO,
      params,
    },
    BaseData
  );
};
//获取历史查询列表

export const getHistoryRainList = (params) => {
  return defHttp.post(
    {
      url: API.HISTORY_RAIN_LIST,
      params,
    },
    BaseData
  );
};
// 查询测站
export const getDataHistRainStatios = (params) => {
  return defHttp.get(
    {
      url: API.DATA_HIST_RAIN_STATIOS,
      params,
    },
    BaseData
  );
};
// 多站查询
export const getHistoryTimeInquire = (params) => {
  return defHttp.post(
    {
      url: API.HISTORY_TIME_INQUIRE,
      params,
    },
    BaseData
  );
};
// 水情查询
export const getHistoryWater = (params) => {
  return defHttp.post(
    {
      url: API.HISTORY_WATER,
      params,
    },
    BaseData
  );
};
// 气象查询-要素单选列表
export const getDataHistWeaElement = (params) => {
  return defHttp.get(
    {
      url: API.DATA_HIST_WEA_ELEMENTS,
      params,
    },
    BaseData
  );
};
// 气象查询-测站多选列表
export const getDataHistWeaStations = (params) => {
  return defHttp.get(
    {
      url: API.DATA_HIST_WEA_STATIONS,
      params,
    },
    BaseData
  );
};
// 单站点多要素查询
export const getDataHistQueryOneElement = (params) => {
  return defHttp.post(
    {
      url: API.DATA_HIST_QUERY_ONE_ELEMENT,
      params,
    },
    BaseData
  );
};
// 多站点单要素查询
export const getDataHistQueryOneStation = (params) => {
  return defHttp.post(
    {
      url: API.DATA_HIST_QUERY_ONE_STATION,
      params,
    },
    BaseData
  );
};
// 二维曲线
export const getRelationData = (params) => {
  return defHttp.post(
    {
      url: API.RELATION_DATA,
      params,
    },
    BaseData
  );
};
// 导入二维曲线数据
export const getTableUpload = (params) => {
  return defHttp.post(
    {
      url: API.TABLE_UPLOAD,
      params,
    },
    BaseData
  );
};
// 新增接口
export const getNewStation = (params) => {
  return defHttp.post(
    {
      url: API.NEW_STATION,
      params,
    },
    BaseData
  );
};
// 修改
export const getUpdateTree = (params) => {
  return defHttp.post(
    {
      url: API.UPDATE_TREE,
      params,
    },
    BaseData
  );
};
// 删除
export const getDeleteTree = (params) => {
  return defHttp.post(
    {
      url: API.DELETE_TREE,
      params,
    },
    BaseData
  );
};
// 传感器列表
export const getSensorTable = (params) => {
  return defHttp.get(
    {
      url: API.SENSOR_TABLE,
      params,
    },
    BaseData
  );
};
// 测站列表
export const getStationTable = (params) => {
  return defHttp.get(
    {
      url: API.STATION_TABLE,
      params,
    },
    BaseData
  );
};
// 图片上传
export const UploadImg = (params) => {
  return defHttp.post(
    {
      url: API.UPLOAD_STA_PIC,
      params,
      // headers: {
      //   'Content-Type': 'multipart/form-data',
      // },
    },
    BaseData
  );
};
//多站点查询要素
export const getDataAllElements = (params) => {
  return defHttp.post(
    {
      url: API.DATA_ALL_ELEMENTS,
      params,
    },
    BaseData
  );
};
// 多站点对比分析
export const getManyStAnalyze = (params) => {
  return defHttp.post(
    {
      url: API.MANY_ST_ANALYZE,
      params,
      // headers: {
      //   'Content-Type': 'multipart/form-data',
      // },
    },
    BaseData
  );
};
// 单站点对比
export const getSingleStAnalyze = (params) => {
  return defHttp.post(
    {
      url: API.SINGLE_ST_ANALYZE,
      params,
    },
    BaseData
  );
};
// 查询所有报表
export const stStatistics = (params) => {
  return defHttp.post(
    {
      url: API.ST_STATISTICS,
      params,
    },
    BaseData
  );
};
// 查询树状数据
export const getSimulateTree = (params) => {
  return defHttp.get(
    {
      url: API.SIMULATETREE,
      params,
    },
    BaseData
  );
};
export const getFcodeshow = (params) => {
  return defHttp.post(
    {
      url: API.FCODE_SHOW,
      params,
    },
    BaseData
  );
};
export const getStList = (params) => {
  return defHttp.get(
    {
      url: API.ST_LIST,
      params,
    },
    BaseData
  );
};
// 雨洪查询雨量模块
export const getRainFlowShow = (params) => {
  return defHttp.post(
    {
      url: API.RAIN_FLOW_SHOW,
      params,
    },
    BaseData
  );
};
// 模型状态变量
export const getIntermediateParamShow = (params) => {
  return defHttp.post(
    {
      url: API.INTERMEDIATE_PARAM_SHOW,
      params,
    },
    BaseData
  );
};
// 查询模型参数
export const getInitParamShow = (params) => {
  return defHttp.post(
    {
      url: API.INIT_PARAM_SHOW,
      params,
    },
    BaseData
  );
};
// 查询模拟洪水
export const getFloodForecast = (params) => {
  return defHttp.post(
    {
      url: API.FLOOD_FORECAST,
      params,
    },
    BaseData
  );
};
// 更新方案
export const getFloodUpdate = (params) => {
  return defHttp.post(
    {
      url: API.FLOOD_UPDATE,
      params,
    },
    BaseData
  );
};
// 获取阀值INIT_THRESHOLD
export const getInitThreshold = (params) => {
  return defHttp.post(
    {
      url: API.INIT_THRESHOLD,
      params,
    },
    BaseData
  );
};
// 获取洪号的列表数据TRANSECT_TREE
export const getTransectTree = (params) => {
  return defHttp.post(
    {
      url: API.TRANSECT_TREE,
      params,
    },
    BaseData
  );
};
// 查询列表FCODE_CAL_TREE
export const getFcodeCalTree = (params) => {
  return defHttp.post(
    {
      url: API.FCODE_CAL_TREE,
      params,
    },
    BaseData
  );
};


// 删除洪号FCODE_DELTE
export const fcodeDelte = (params) => {
  return defHttp.post(
    {
      url: API.FCODE_DELTE,
      params,
    },
    BaseData
  );
};
// 获取洪号详情图表
export const getDetailsShow = (params) => {
  return defHttp.post(
    {
      url: API.DETAILS_SHOW,
      params,
    },
    BaseData
  );
};
// 获取水情测站WATER_STATIONS
export const getWaterStations = (params) => {
  return defHttp.get(
    {
      url: API.WATER_STATIONS,
      params,
    },
    BaseData
  );
};
// 获取所有断面数据PID_SELECT
export const getPisSelect = (params) => {
  return defHttp.post(
    {
      url: API.PID_SELECT,
      params,
    },
    BaseData
  );
};
// 新增数据
export const getFcodeAdd = (params) => {
  return defHttp.post(
    {
      url: API.FCODE_ADD,
      params,
    },
    BaseData
  );
};

// 编辑洪号FCODE_UPDATE
export const getFcodeUpDate = (params) => {
  return defHttp.post(
    {
      url: API.FCODE_UPDATE,
      params,
    },
    BaseData
  );
};
// 获取预报模型
export const schemeAddSpinner = (params) => {
  return defHttp.post(
    {
      url: API.SCHEME_ADD_SPINNER,
      params,
    },
    BaseData
  );
};
// 人工预测
export const forecastArtifical = (params) => {
  return defHttp.post(
    {
      url: API.FORECAST_ARTIFICAL,
      params,
    },
    BaseData
  );
};
// 保存入库
export const resultWrite = (params) => {
  return defHttp.post(
    {
      url: API.REAULT_WRITE,
      params,
    },
    BaseData
  );
};
// 查询详情GET_PROPERTIES
export const getProperties = (params) => {
  return defHttp.post(
    {
      url: API.GET_PROPERTIES,
      params,
    },
    BaseData
  );
};
// 定时预报
export const getAutoShow = (params) => {
  return defHttp.post(
    {
      url: API.AUTO_SHOW,
      params,
    },
    BaseData
  );
};
// 预报断面获取
export const getTransectDetails = (params) => {
  return defHttp.post(
    {
      url: API.TRANSECT_DETAILS,
      params,
    },
    BaseData
  );
};
// 查询列表
export const getSchemeShow = (params) => {
  return defHttp.post(
    {
      url: API.SCHEME_SHOW,
      params,
    },
    BaseData
  );
};
//查询雨量站
export const getSchemeSpinner = (params) => {
  return defHttp.post(
    {
      url: API.SCHEME_SPINNER,
      params,
    },
    BaseData
  );
};
//编辑方案数据
export const getSchemeUpdata = (params) => {
  return defHttp.post(
    {
      url: API.SCHEME_UPDATE,
      params,
    },
    BaseData
  );
};
// 方案删除SINGLE_DELETE
export const getSchemeDelete = (params) => {
  return defHttp.post(
    {
      url: API.SINGLE_DELETE,
      params,
    },
    BaseData
  );
};
// 获取流域点位SCHEME_ADD_PID
export const getSponner = (params) => {
  return defHttp.post(
    {
      url: API.SCHEME_ADD_SPONNER,
      params,
    },
    BaseData
  );
};
// 新增断面SCHEME_ADD_PID
export const subSchemeAddPid = (params) => {
  return defHttp.post(
    {
      url: API.SCHEME_ADD_PID,
      params,
    },
    BaseData
  );
};
// 获取模型参数配置INIT_PARAM_ADD_SHOW
export const initParamAddShow = (params) => {
  return defHttp.post(
    {
      url: API.INIT_PARAM_ADD_SHOW,
      params,
    },
    BaseData
  );
};
// 调用新增方案接口ADD_FORECAST_FLOOD
export const addForecastFlood = (params) => {
  return defHttp.post(
    {
      url: API.ADD_FORECAST_FLOOD,
      params,
    },
    BaseData
  );
};
// 获取定时预报配置列表 AUTO_CONFIG_SHOW
export const getAutoConfigShow = (params) => {
  return defHttp.post(
    {
      url: API.AUTO_CONFIG_SHOW,
      params,
    },
    BaseData
  );
};
export const getWeatherType = (params) => {
  return defHttp.post(
    {
      url: API.SCHEME_ADD_SPONNER,
      params:{colume_id:"weather_type"},
    },
    BaseData
  );
};
export const getStationType = (params) => {
  return defHttp.post(
    {
      url: API.SCHEME_ADD_SPONNER,
      params:{colume_id:"station_type"},
    },
    BaseData
  );
};
// 修改定时预报参数配置AUTOCONFIG_UPDATA
export const getAutoConfigUpdata = (params) => {
  return defHttp.post(
    {
      url: API.AUTOCONFIG_UPDATA,
      params
    },
    BaseData
  );
};
// 站码列表BASE_CONFIG_SHOW
export const getBaseConfigShow = (params) => {
  return defHttp.post(
    {
      url: API.BASE_CONFIG_SHOW,
      params
    },
    BaseData
  );
};
// 站码编辑BASE_CONFIG_UPDATE
export const getBaseConfigUpdate = (params) => {
  return defHttp.post(
    {
      url: API.BASE_CONFIG_UPDATE,
      params
    },
    BaseData
  );
};
// 获取定时列表HANGDUING_CONFIG_SHOW
export const getHangduingConfigShow = (params) => {
  return defHttp.post(
    {
      url: API.HANGDUING_CONFIG_SHOW,
      params
    },
    BaseData
  );
};
// 修改定时数据HANGDUING_CONFIG_UPDATE
export const getHangduingConfigUpdate= (params) => {
  return defHttp.post(
    {
      url: API.HANGDUING_CONFIG_UPDATE,
      params
    },
    BaseData
  );
};
// 站码对应列表 CODE_CONFIG_SHOW
export const getCodeConfigShow = (params) => {
  return defHttp.post(
    {
      url: API.CODE_CONFIG_SHOW,
      params
    },
    BaseData
  );
};
// 站码编辑STATION_CODE_UPDATA
export const getStationCodeUpdata = (params) => {
  return defHttp.post(
    {
      url: API.STATION_CODE_UPDATA,
      params
    },
    BaseData
  );
};
// 站码新增STATION_CODE_ADD
export const getStationCodeAdd = (params) => {
  return defHttp.post(
    {
      url: API.STATION_CODE_ADD,
      params
    },
    BaseData
  );
};
// 查询传感器类型DCHAR_LIST
export const getDcharList = (params) => {
  return defHttp.get(
    {
      url: API.DCHAR_LIST,
      params
    },
    BaseData
  );
};
// 删除站码STATION_CODE_DELETE
export const delStationCode = (params) => {
  return defHttp.post(
    {
      url: API.STATION_CODE_DELETE,
      params
    },
    BaseData
  );
};
// 查询右侧数据FCODE_ADD_CAL
export const getFcodeAddCal = (params) => {
  return defHttp.post(
    {
      url: API.FCODE_ADD_CAL,
      params
    },
    BaseData
  );
};
// 查询id为76的数据REGRESSION_PARAM_SHOW
export const getRegressionParamShow = (params) => {
  return defHttp.post(
    {
      url: API.REGRESSION_PARAM_SHOW,
      params
    },
    BaseData
  );
};
// dangid为76的时候进行模拟CORRESPONDING
export const getCorresponding = (params) => {
  return defHttp.post(
    {
      url: API.CORRESPONDING,
      params
    },
    BaseData
  );
};
// 当id为76的时候更新方案REGRSSION_UPDATE
export const getRegrssionUpdate = (params) => {
  return defHttp.post(
    {
      url: API.REGRSSION_UPDATE,
      params
    },
    BaseData
  );
};
// 自动率定接口CORRESPONDING_OPTIMAZE
export const getCorrespondingOptimaze = (params) => {
  return defHttp.post(
    {
      url: API.CORRESPONDING_OPTIMAZE,
      params
    },
    BaseData
  );
};
// 查询数据人工计算HIST_COMPUTE
export const getHistCompute = (params) => {
  return defHttp.post(
    {
      url: API.HIST_COMPUTE,
      params
    },
    BaseData
  );
};
// 保存数据录入DATA_MODIFY
export const postDataModify = (params) => {
  return defHttp.post(
    {
      url: API.DATA_MODIFY,
      params
    },
    BaseData
  );
};
// 查询默认值FORECAST_SCHEME
export const postForecastScheme = (params) => {
  return defHttp.post(
    {
      url: API.FORECAST_SCHEME,
      params
    },
    BaseData
  );
};
// 查询水位流量过程线REAL_WATER_ZQ
export const postRealWaterZq = (params) => {
  return defHttp.post(
    {
      url: API.REAL_WATER_ZQ,
      params
    },
    BaseData
  );
};
// 查询河段SCHEME_ADD_MSKNUM
export const schemeAddMsknum = (params) => {
  return defHttp.post(
    {
      url: API.SCHEME_ADD_MSKNUM,
      params
    },
    BaseData
  );
};
// 查询预见期FORECAST_HOUR
export const forecastHour = (params) => {
  return defHttp.post(
    {
      url: API.FORECAST_HOUR,
      params
    },
    BaseData
  );
};
// 快报列表JIANBAO_TYPE
export const getJianBaoType = (params) => {
  return defHttp.post(
    {
      url: API.JIANBAO_TYPE,
      params
    },
    BaseData
  );
};
// 上传简版JIANBAO_PIC
export const UploadJianbao = (params) => {
  return defHttp.post(
    {
      url: API.JIANBAO_PIC,
      params,
      // headers: {
      //   'Content-Type': 'multipart/form-data',
      // },
    },
    BaseData
  );
};
// 简报预览JIANBAO_PREVIEW
export const getJianbaoPreview = (params) => {
  return defHttp.post(
    {
      url: API.JIANBAO_PREVIEW,
      params
    },
    BaseData
  );
};
// NEW_JIANBAO = `${BaseURL.url}/hydro_biz_api/new_jianbao`,
// MODIFY_JIANBAO 
export const getNewJianbao = (params) => {
  return defHttp.post(
    {
      url: API.NEW_JIANBAO,
      params
    },
    BaseData
  );
};
export const getModifyJianbao = (params) => {
  return defHttp.post(
    {
      url: API.MODIFY_JIANBAO,
      params
    },
    BaseData
  );
};
// 获取摸吧
export const getJianbaoTemplate = (params) => {
  return defHttp.get(
    {
      url: API.JIANBAO_TEMPLATE,
      params
    },
    BaseData
  );
};
// 生成JIANBAO_GENERATE
export const getJianbaoGenerate = (params) => {
  return defHttp.post(
    {
      url: API.JIANBAO_GENERATE,
      params
    },
    BaseData
  );
};
// 删除简报DELETE_JIANBAO
export const deleteJianbao = (params) => {
  return defHttp.post(
    {
      url: API.DELETE_JIANBAO,
      params
    },
    BaseData
  );
};
// 模型id为71时的方案保存REGRESSION_LINEAR
export const postRegressionLinear = (params) => {
  return defHttp.post(
    {
      url: API.REGRESSION_LINEAR,
      params
    },
    BaseData
  );
};
// 模型为id = 76的时候REGRESSION_LINEARDEL
export const postRegressionLinearDel = (params) => {
  return defHttp.post(
    {
      url: API.REGRESSION_LINEARDEL,
      params
    },
    BaseData
  );
};
// 模型为id = 76 的时候新增方案操作FORECAST_SCHEME_ADD
export const postForecastSchemeAdd = (params) => {
  return defHttp.post(
    {
      url: API.FORECAST_SCHEME_ADD,
      params
    },
    BaseData
  );
};
// 测站新增接口MONITORING_STATION
export const postMonitoringStation = (params) => {
  return defHttp.post(
    {
      url: API.MONITORING_STATION,
      params
    },
    BaseData
  );
};

// 新雨情历史查询
export const gethistoryRain2 = (params) => {
  return defHttp.post(
    {
      url: API.HISTORY_RAIN2,
      params
    },
    BaseData
  );
};