Newer
Older
HuangJiPC / src / apiData / cityModal.js
@zengcong zengcong on 5 Jul 1 KB update
/**
 * @param eventName 函数名称,必须唯一 *必填项
 * @param url 请求地址 *必填项
 * @param method 请求请求方式(默认为get)
 * @param type 传参方式 1为params 默认为json
 * @param remark 备注
 * @param urlParam //url传参
 * @param isUrl //只是url地址
 * @param 特别注意:导出方式只能使用es5语法,切记
 */

const BASE_URL = '/drainage-v3';

const apiList = [
  {
    eventName: 'rainlistHjly',
    url: '/dmps/api/v1/hjly/rainlist/page?authMode=skip-auth',
    method: 'post',
    remark: '降雨数据采集',
  },
  {
    eventName: 'rainHistoryHjly',
    url: '/dmps/api/v1/hjly/raindaydata/page?authMode=skip-auth',
    method: 'post',
    remark: '雨量站历史数据',
  },
  {
    eventName: 'jsdListHjly',
    url: '/dmps/api/v1/hjly/jslist/page?authMode=skip-auth',
    method: 'post',
    remark: '积水点站点列表',
  },
  {
    eventName: 'jsdRealHjly',
    url: '/dmps/api/v0/hjly/js-realtime/page?authMode=skip-auth',
    method: 'post',
    remark: '积水点实时数据详情',
  },
  {
    eventName: 'dayWeather',
    url: '/dmps/api/v1/hjly/7day/list?authMode=skip-auth',
    method: 'get',
    remark: '7天预报',
  },
  {
    eventName: 'lakelistdata',
    url: '/dmps/api/v1/hjly/lakelist/page?authMode=skip-auth',
    method: 'post',
    remark: '湖泊列表',
  },
  {
    eventName: 'canllistdata',
    url: '/dmps/api/v1/hjly/canllist/list?authMode=skip-auth',
    method: 'post',
    remark: '港渠列表',
  },
  {
    eventName: 'pumplistdata',
    url: '/dmps/api/v1/hjly/pumplist/list?authMode=skip-auth',
    method: 'post',
    remark: '泵站列表',
  },
];

module.exports = {
  BASE_URL,
  apiList,
};