Commit 1c0b5635 authored by 杨思琦's avatar 杨思琦

fix: 接口更新

parent c50899f0
Pipeline #66718 passed with stages
import { request } from '@wisdom-utils/utils'; import { request } from '@wisdom-utils/utils';
import * as constants from '../../constants'; import * as constants from '../../constants';
const API = { const API = {
GET_INFORMATION: GET_INFORMATION: '/PandaCore/GCK/Message/GetInformationInfo',
'/PandaCore/GCK/Message/GetInformationInfo', GET_INFORMATION_THREE: '/PandaOMS/OMS/MessageConfig/GetInformationInfo',
GET_MQTT_SITE_CODE: GET_MQTT_SITE_CODE: '/PandaOMS/OMS/HostManager/GetHostConfig',
'/PandaOMS/OMS/HostManager/GetEmqtConfig', GET_ALL_INFORMATION_INFO: '/PandaCore/GCK/Message/GetAllInformationInfo',
GET_ALL_INFORMATION_INFO: GET_ALL_INFORMATION_INFO_THREE: '/PandaOMS/OMS/MessageConfig/GetAllInformationInfo',
'/PandaCore/GCK/Message/GetAllInformationInfo', POST_INFORMATION_STATUS: '/PandaCore/GCK/Message/PostInformationStatus',
POST_INFORMATION_STATUS: POST_ADD_OPTIONS: '/CityInterface/rest/services/WisdomUnion.svc/CustomerManage/AddOption',
'/PandaCore/GCK/Message/PostInformationStatus', GET_CURRENT_INFO_TYPE: '/PandaCore/GCK/Message/GetCurrentInfoType',
POST_ADD_OPTIONS:
'/CityInterface/rest/services/WisdomUnion.svc/CustomerManage/AddOption',
GET_CURRENT_INFO_TYPE:
'/PandaCore/GCK/Message/GetCurrentInfoType',
}; };
const notificationService = { const notificationService = {
...@@ -23,7 +19,8 @@ const notificationService = { ...@@ -23,7 +19,8 @@ const notificationService = {
type: constants.REQUEST_HTTP, type: constants.REQUEST_HTTP,
}, },
getInformationInfo: { getInformationInfo: {
url: API.GET_INFORMATION, url: () =>
window?.globalConfig?.mqtt_mess?.MessageLevel === '3.0' ? API.GET_INFORMATION_THREE : API.GET_INFORMATION,
method: constants.REQUEST_METHOD_GET, method: constants.REQUEST_METHOD_GET,
type: constants.REQUEST_HTTP, type: constants.REQUEST_HTTP,
}, },
...@@ -33,7 +30,10 @@ const notificationService = { ...@@ -33,7 +30,10 @@ const notificationService = {
type: constants.REQUEST_HTTP, type: constants.REQUEST_HTTP,
}, },
getAllInformationInfo: { getAllInformationInfo: {
url: API.GET_ALL_INFORMATION_INFO, url: () =>
window?.globalConfig?.mqtt_mess?.MessageLevel === '3.0'
? API.GET_ALL_INFORMATION_INFO_THREE
: API.GET_ALL_INFORMATION_INFO,
method: constants.REQUEST_METHOD_GET, method: constants.REQUEST_METHOD_GET,
type: constants.REQUEST_HTTP, type: constants.REQUEST_HTTP,
}, },
...@@ -49,5 +49,4 @@ const notificationService = { ...@@ -49,5 +49,4 @@ const notificationService = {
}, },
}; };
export default notificationService; export default notificationService;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment