cloud.js 1.64 KB
Newer Older
1 2 3 4 5 6 7
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',

8 9
  // GET_ACCOUNT_PAGELIST: `/CityInterface/Services/CityServer_CaseManage/REST/CaseManageREST.svc/GetAccountPageList`,
  GET_ACCOUNT_PAGELIST: `/PandaWorkFlow/WorkFlow/AccountManage/GetAccountPageList`,
10
  
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
  getAccountPageList: {
    url: API.GET_ACCOUNT_PAGELIST,
27
    method: constants.REQUEST_METHOD_POST,
28 29 30
    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;