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

const portalURL = 'CityInterface/rest/Services/Portal.svc';
export const API = {
  GET_DATA_DICTIONARY_LIST:
    '/CityInterface/Services/CityServer_WorkFlow/REST/WorkFlowREST.svc/GetDataDictionaryList',

  GET_ACCOUNT_PAGELIST: `/CityInterface/Services/CityServer_CaseManage/REST/CaseManageREST.svc/GetAccountPageList`,
  
  // 云平台使用分析
  LOGIN_STATISTIC: `${portalURL}/OMManage/LoginStatisticServer`,
  FUNCTIONS_STATISTIC: `${portalURL}/OMManage/FunctionStatisticServer`,
  ENVIROMENT_STATISTIC: `${portalURL}/OMManage/EnviromentStatisticServer`,
  USER_LOGIN_STATISTIC: `${portalURL}/OMManage/UserLoginStatisticServer`,
};

const services = {
  getDataDictionaryList: {
    url: API.GET_DATA_DICTIONARY_LIST,
    method: constants.REQUEST_METHOD_GET,
    type: constants.REQUEST_HTTP,
  },

  getAccountPageList: {
    url: API.GET_ACCOUNT_PAGELIST,
    method: constants.REQUEST_METHOD_GET,
    type: constants.REQUEST_HTTP,
  },

  getLoginStatistic: {
    url: API.LOGIN_STATISTIC,
    method: constants.REQUEST_METHOD_GET,
    type: constants.REQUEST_HTTP,
  },
  getFunctionsStatistic: {
    url: API.FUNCTIONS_STATISTIC,
    method: constants.REQUEST_METHOD_GET,
    type: constants.REQUEST_HTTP,
  },
  getEnviromentStatistic: {
    url: API.ENVIROMENT_STATISTIC,
    method: constants.REQUEST_METHOD_GET,
    type: constants.REQUEST_HTTP,
  },
  getUserLoginStatistic: {
    url: API.USER_LOGIN_STATISTIC,
    method: constants.REQUEST_METHOD_GET,
    type: constants.REQUEST_HTTP,
  },
};

export default services;