import * as constants from '../../constants';

const API = {
  GET_INFORMATION:
    '/CityInterface/rest/services/CountyProduct.svc/SCADAOper/GetInformationInfo',
  GET_MQTT_SITE_CODE:
    '/CityInterface/rest/services/CountyProduct.svc/SCADAOper/getMqttSitecode',
  POST_INFORMATION_STATUS:
    '/CityInterface/rest/services/CountyProduct.svc/SCADAOper/PostInformationStatus',
  POST_ADD_OPTIONS:
    '/CityInterface/rest/services/WisdomUnion.svc/CustomerManage/AddOption',
};

const notificationService = {
  getInformationInfo: {
    url: API.GET_INFORMATION,
    method: constants.REQUEST_METHOD_GET,
    type: constants.REQUEST_HTTP,
  },
  getMqttSiteCode: {
    url: API.GET_MQTT_SITE_CODE,
    method: constants.REQUEST_METHOD_GET,
    type: constants.REQUEST_HTTP,
  },
  postInformationStatus: {
    url: API.POST_INFORMATION_STATUS,
    method: constants.REQUEST_METHOD_POST,
    type: constants.REQUEST_HTTP,
  },
  postAddOptions: {
    url: API.POST_ADD_OPTIONS,
    method: constants.REQUEST_METHOD_POST,
    type: constants.REQUEST_HTTP,
  },
};

export default notificationService;
