const GATEWAY_CONTROLLER = [
  {
    "paramKey": "output_voltage",
    "paramVal": "",
    "paramName": "输出电压(单位:V)",
    "canModify": true
  },
  {
    "paramKey": "communication_type",
    "paramVal": "",
    "paramName": "通讯类型",
    "canModify": true
  },
  {
    "paramKey": "installation_occupancy",
    "paramVal": "",
    "paramName": "安装占位",
    "canModify": true
  }
]

const MINIATURE_BREAKER = [
  {
    "paramKey": "pole_number",
    "paramVal": "",
    "paramName": "极数",
    "canModify": true
  },
  {
    "paramKey": "trip_type",
    "paramVal": "",
    "paramName": "脱扣类型",
    "canModify": true
  },
  {
    "paramKey": "installation_occupancy",
    "paramVal": "",
    "paramName": "安装占位",
    "canModify": true
  },
  {
    "paramKey": "rated_current",
    "paramVal": "",
    "paramName": "额定电流(单位:A)",
    "canModify": true
  },
  {
    "paramKey": "power_limit",
    "paramVal": "",
    "paramName": "功率限额(单位:W)",
    "canModify": true
  },
  {
    "paramKey": "lower_voltage",
    "paramVal": "",
    "paramName": "电压下限(单位:V)",
    "canModify": true
  },
  {
    "paramKey": "upper_voltage",
    "paramVal": "",
    "paramName": "电压上限(单位:V)",
    "canModify": true
  },
  {
    "paramKey": "current_limit",
    "paramVal": "",
    "paramName": "电流限额(单位:A)",
    "canModify": true
  },
  {
    "paramKey": "leakage_current_limit",
    "paramVal": "",
    "paramName": "漏电流限额(单位:mA)",
    "canModify": true
  },
  {
    "paramKey": "temperature_limit",
    "paramVal": "",
    "paramName": "温度限额(单位:℃)",
    "canModify": true
  },
  {
    "paramKey": "connection_mode",
    "paramVal": "",
    "paramName": "连接方式",
    "canModify": true
  }
]

const resultObject = {
  GATEWAY_CONTROLLER,
  MINIATURE_BREAKER
}

export const getTypeParam = (keys) => {
  return resultObject[keys] ? resultObject[keys] : [];
}
