From 3a249d87749f560017c19a352f0e548240e7cd26 Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期三, 31 七月 2024 10:53:24 +0800
Subject: [PATCH] 接口参数修改
---
ycl-platform/src/main/java/com/ycl/vo/cockpit/enforcementEvents/EnforcementEventsVO.java | 71 ++---------------------------------
1 files changed, 5 insertions(+), 66 deletions(-)
diff --git a/ycl-platform/src/main/java/com/ycl/vo/cockpit/enforcementEvents/EnforcementEventsVO.java b/ycl-platform/src/main/java/com/ycl/vo/cockpit/enforcementEvents/EnforcementEventsVO.java
index 314d9b4..3242fa4 100644
--- a/ycl-platform/src/main/java/com/ycl/vo/cockpit/enforcementEvents/EnforcementEventsVO.java
+++ b/ycl-platform/src/main/java/com/ycl/vo/cockpit/enforcementEvents/EnforcementEventsVO.java
@@ -16,59 +16,15 @@
*/
@ApiModel(description = "椹鹃┒鑸辨暟鎹�-鎵ф硶浜嬩欢VO灞�")
public class EnforcementEventsVO {
- @ApiModel(description = "鎵ф硶浜嬩欢缁熻")
- @Data
- public static class StatisticsEventVO {
- @ApiModelProperty(value = "鏁伴噺")
- private Integer count;
- @ApiModelProperty(value = "姣斾緥")
- private BigDecimal ratio;
-
- @ApiModelProperty(value = "涓婂崌涓嬮檷")
- private Boolean up;
- }
@Data
@ApiModel(description = "浜嬩欢绫诲瀷/浜嬩欢鏉ユ簮")
public static class TypeAndSourceVO {
@ApiModelProperty(value = "浜嬩欢鐨勬�绘暟")
- private Integer all;
+ private Long all;
@ApiModelProperty(value = "浜嬩欢绫诲瀷鐨勬暟閲忋�佸悇鍗犳瘮")
- private List<EnforcementEventsVO.TypeAndSourceVO1> records;
- }
-
- @Data
- @ApiModel(description = "浜嬩欢绫诲瀷/浜嬩欢鏉ユ簮")
- public static class TypeAndSourceVO1 {
- @ApiModelProperty(value = "鍚嶇О")
- private String name;
- @ApiModelProperty(value = "鏁伴噺")
- private Integer count;
- @ApiModelProperty(value = "姣斾緥")
- private BigDecimal ratio;
- }
-
- @Data
- @ApiModel(description = "瑙嗛鎶撴媿楂樺彂鐐逛綅/浜嬩欢鍖哄煙缁熻")
- public static class VideoAndAreaVO {
- @ApiModelProperty(value = "鐐逛綅鍚嶇О")
- private String name;
- @ApiModelProperty(value = "娆℃暟")
- private Integer count;
- @ApiModelProperty(value = "鏁版嵁鍗犳瘮")
- private BigDecimal ratio;
- }
-
- @Data
- @ApiModel(description = "寤惰浜嬩欢")
- public static class DelayVO {
- @ApiModelProperty(value = "浜嬩欢缂栫爜锛堝敮涓�锛�")
- private String code;
- @ApiModelProperty(value = "浜嬩欢鎻忚堪")
- private String description;
- @ApiModelProperty(value = "瓒呮湡鏃堕棿锛堝垎閽燂級")
- private Integer duration;
+ private List<VideoAndAreaVO> records;
}
@Data
@@ -83,25 +39,8 @@
@ApiModelProperty(value = "AI璇嗗埆鐨勪簨浠舵�绘暟")
private Integer identification;
@ApiModelProperty(value = "鍏蜂綋浜嬩欢鐨勬暟鎹俊鎭�")
- private EnforcementEventsVO.EventVO event;
+ private List<EventVO> event;
+ @ApiModelProperty(value = "鍏蜂綋浜嬩欢鐨勬暟鎹俊鎭�")
+ private Long total;
}
-
- @Data
- @ApiModel(description = "鍏蜂綋浜嬩欢鐨勬暟鎹俊鎭�")
- public static class EventVO {
- @ApiModelProperty(value = "浜嬩欢鎻忚堪")
- private String description;
- @ApiModelProperty(value = "浜嬪彂鍦扮偣")
- private String address;
- @ApiModelProperty(value = "鍙戠敓鏃堕棿")
- private String alarmTime;
- @ApiModelProperty(value = "鍏宠仈鎽勫儚鐐逛綅")
- private String point;
- @ApiModelProperty(value = "鐩戞帶鐢婚潰")
- private String picture;
- @ApiModelProperty(value = "鏉ユ簮")
- private String source;
- }
-
-
}
--
Gitblit v1.8.0