瀏覽代碼

接口调整

hxd 2 月之前
父節點
當前提交
03bf126b81

+ 10 - 0
portal-service-common/src/main/java/com/hfln/portal/common/dto/data/event/StayTimeDTO.java

@@ -2,6 +2,7 @@ package com.hfln.portal.common.dto.data.event;
 
 
 import com.hfln.portal.common.vo.BaseDto;
+import io.swagger.v3.oas.annotations.media.Schema;
 import lombok.Data;
 import lombok.EqualsAndHashCode;
 
@@ -15,42 +16,51 @@ public class StayTimeDTO extends BaseDto {
     /**
      * stay_time表主键id
      */
+    @Schema(description = "stay_time表主键id")
     private Long stayTimeId;
 
     /**
      * 设备表主键id
      */
+    @Schema(description = "设备表主键id")
     private Long devId;
 
     /**
      * 设备客户端id
      */
+    @Schema(description = "设备clientId")
     private String clientId;
 
     /**
      * 设备名称
      */
+    @Schema(description = "设备名称")
     private String devName;
 
     /**
      *  停留类型
      */
+    @Schema(description = "停留类型")
     private Integer type;
 
     /**
      * 进入时间
      */
+    @Schema(description = "进入时间")
     private LocalDateTime enterTime;
 
     /**
      * 离开时间
      */
+    @Schema(description = "离开时间")
     private LocalDateTime leaveTime;
 
     /**
      * 停留时长(秒)
      */
+    @Schema(description = "停留时长(秒)")
     private Integer stayTime;
 
+    @Schema(description = "子停留信息")
     private List<StayTimeDTO> childStayTime;
 }

+ 2 - 0
portal-service-common/src/main/java/com/hfln/portal/common/response/device/UsedInfoQueryRes.java

@@ -13,8 +13,10 @@ import java.util.List;
 @Schema(description = "使用信息查询结果")
 public class UsedInfoQueryRes extends BaseVO {
 
+    @Schema(description = "使用信息")
     private List<StayTimeDTO> stayTimes;
 
+    @Schema(description = "总数")
     private int count;
 
 }