|
@@ -1,4 +1,4 @@
|
|
|
-import {get, post} from '../http'
|
|
|
|
|
|
|
+import {get, post, put} from '../http'
|
|
|
|
|
|
|
|
const charge = {
|
|
const charge = {
|
|
|
getStationPages: (params) => {
|
|
getStationPages: (params) => {
|
|
@@ -22,6 +22,9 @@ const charge = {
|
|
|
getConnectorList: (params) => {
|
|
getConnectorList: (params) => {
|
|
|
return post('station/getConnectorStatusPages', params)
|
|
return post('station/getConnectorStatusPages', params)
|
|
|
},
|
|
},
|
|
|
|
|
+ getConnectorListV2: (params) => {
|
|
|
|
|
+ return post('dawn/api/v1/charge-connector/pages', params)
|
|
|
|
|
+ },
|
|
|
getAllStationList: (params) => {
|
|
getAllStationList: (params) => {
|
|
|
return get('station/getAllStationList', params)
|
|
return get('station/getAllStationList', params)
|
|
|
},
|
|
},
|
|
@@ -49,6 +52,26 @@ const charge = {
|
|
|
getLumiQrCode: (connectorPk) => {
|
|
getLumiQrCode: (connectorPk) => {
|
|
|
return get("dawn/api/v1/charge-box/connector/gen-webpos-qr/" + connectorPk)
|
|
return get("dawn/api/v1/charge-box/connector/gen-webpos-qr/" + connectorPk)
|
|
|
},
|
|
},
|
|
|
|
|
+ getOCPIStatusOptions() {
|
|
|
|
|
+ return get("dawn/api/v1/ocpi-status-select")
|
|
|
|
|
+ },
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 手动更新连接器的OCPI状态到指定状态
|
|
|
|
|
+ * @param {Object} data {connectorPk,currentOcppStatus,currentOcpiStatus,latestOcpiStatus,latestOcpiStatusExpireTime,actionReason}
|
|
|
|
|
+ */
|
|
|
|
|
+ overwriteOCPIStatus(data) {
|
|
|
|
|
+ return post("dawn/api/v1/charge-connector/manual-overwrite-ocpi-status/" + data.connectorPk, data)
|
|
|
|
|
+ },
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 手动刷新连接器的OCPI状态到最新的OCPP映射状态
|
|
|
|
|
+ * @param {Object} connectorPk
|
|
|
|
|
+ */
|
|
|
|
|
+ refreshOCPIStatus(connectorPk) {
|
|
|
|
|
+ return put("dawn/api/v1/charge-connector/manual-refresh-ocpi-status/" + connectorPk)
|
|
|
|
|
+ },
|
|
|
|
|
+ getConnectorActionPages(data) {
|
|
|
|
|
+ return post("dawn/api/v1/charge-connector/manual-action-ocpi-status-pages", data)
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
export default charge;
|
|
export default charge;
|