cloud.js 1.6 KB
Newer Older
1 2 3 4 5 6 7 8
import { jsonp, request } from '@wisdom-utils/utils';
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',

9 10
  GET_ACCOUNT_PAGELIST: `/CityInterface/Services/CityServer_CaseManage/REST/CaseManageREST.svc/GetAccountPageList`,
  
11 12 13 14 15 16 17 18 19 20 21 22 23 24
  // 云平台使用分析
  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,
  },

25 26 27 28 29 30
  getAccountPageList: {
    url: API.GET_ACCOUNT_PAGELIST,
    method: constants.REQUEST_METHOD_GET,
    type: constants.REQUEST_HTTP,
  },

31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
  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;