Commit 63a08e48 authored by 赵啸非's avatar 赵啸非

修改设备新增等

parent 373ecf52
......@@ -262,16 +262,22 @@ public class DeviceApiController {
switch (DeviceStatusEnum.getByValue(req.getReceiveMethod())) {
case ADD:
deviceAdd(req);
break;
case UPDATE:
deviceUpdate(req);
break;
case DEL:
deviceDel(req);
break;
case ACTIVE:
deviceActive(req);
break;
case ENABLED:
deviceEnabled(req);
break;
case STOP:
deviceStop(req);
break;
}
} catch (Exception e) {
log.error("接收数据失败", e);
......
......@@ -91,8 +91,8 @@ Content-Type: application/json
{
"receiveMethod": 1,
"deviceName": "测试接口创建设备1",
"deviceCode": "A1:12:23:12:23:11",
"deviceName": "测试接口创建设备2",
"deviceCode": "A1:12:23:12:23:1122",
"siteId": 123,
"siteCode": "adfasfdasfdasf",
"siteName": "测试站点",
......
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