Преглед изворни кода

停止和启动电需要端口

wzh пре 2 година
родитељ
комит
549b9df961
1 измењених фајлова са 14 додато и 0 уклоњено
  1. 14 0
      api/device/device.js

+ 14 - 0
api/device/device.js

@@ -54,3 +54,17 @@ export function getDeviceInfoFromQrcode(qrcode){
         method: 'post',
     })
 }
+//获取设备预约
+export function getPlanInfo(deviceId,port){
+    return request({
+        url: '/device/getPlanInfo?deviceId='+deviceId+"&port="+port,
+        method: 'post',
+    })
+}
+//取消预约
+export function cancelPlan(planId){
+    return request({
+        url: '/device/cancelPlan/'+planId,
+        method: 'post',
+    })
+}