From b5acd5f91d5917aa112f03908fa9f448b488e229 Mon Sep 17 00:00:00 2001 From: liujun Date: Tue, 23 Apr 2024 18:30:39 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D=E8=BD=A8=E8=BF=B9?= =?UTF-8?q?=E4=B8=8D=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/zcloud/service/dw/DwService.java | 2 ++ .../com/zcloud/service/dw/dto/GetCameraInfoDto.java | 8 ++++++++ .../com/zcloud/service/dw/dto/GetCameraListDto.java | 10 ++++++++++ .../java/com/zcloud/service/dw/impl/DwServiceImpl.java | 10 ++++++++++ 4 files changed, 30 insertions(+) create mode 100644 src/main/java/com/zcloud/service/dw/dto/GetCameraInfoDto.java create mode 100644 src/main/java/com/zcloud/service/dw/dto/GetCameraListDto.java 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); + } }