diff --git a/src/main/java/com/zcloud/service/dw/DwService.java b/src/main/java/com/zcloud/service/dw/DwService.java index ed08a8d8..1d10fc06 100644 --- a/src/main/java/com/zcloud/service/dw/DwService.java +++ b/src/main/java/com/zcloud/service/dw/DwService.java @@ -25,5 +25,7 @@ public interface DwService { // 第二版定位接口 Object getLastProp(GetLastPropDto dto) throws Exception; Object getAllMessage() throws Exception; + Object getCameraList(GetCameraListDto dto) throws Exception; + Object getCameraInfo(GetCameraInfoDto dto) throws Exception; } diff --git a/src/main/java/com/zcloud/service/dw/dto/GetCameraInfoDto.java b/src/main/java/com/zcloud/service/dw/dto/GetCameraInfoDto.java new file mode 100644 index 00000000..40a2b6cc --- /dev/null +++ b/src/main/java/com/zcloud/service/dw/dto/GetCameraInfoDto.java @@ -0,0 +1,8 @@ +package com.zcloud.service.dw.dto; + +import lombok.Data; + +@Data +public class GetCameraInfoDto { + private String id; +} diff --git a/src/main/java/com/zcloud/service/dw/dto/GetCameraListDto.java b/src/main/java/com/zcloud/service/dw/dto/GetCameraListDto.java new file mode 100644 index 00000000..4525e595 --- /dev/null +++ b/src/main/java/com/zcloud/service/dw/dto/GetCameraListDto.java @@ -0,0 +1,10 @@ +package com.zcloud.service.dw.dto; + +import lombok.Data; + +@Data +public class GetCameraListDto { + private String name; + private int current; + private int size; +} diff --git a/src/main/java/com/zcloud/service/dw/impl/DwServiceImpl.java b/src/main/java/com/zcloud/service/dw/impl/DwServiceImpl.java index 29c609eb..d7bc375a 100644 --- a/src/main/java/com/zcloud/service/dw/impl/DwServiceImpl.java +++ b/src/main/java/com/zcloud/service/dw/impl/DwServiceImpl.java @@ -77,4 +77,14 @@ public class DwServiceImpl implements DwService { public Object getAllMessage() throws Exception { return HttpUtil.post(url + "dw/getAllMessage",null); } + + @Override + public Object getCameraList(GetCameraListDto dto) throws Exception { + return HttpUtil.post(url + "dw/getCameraList",dto); + } + + @Override + public Object getCameraInfo(GetCameraInfoDto dto) throws Exception { + return HttpUtil.post(url + "dw/getCameraInfo",dto); + } }