Ver código fonte

房间字段注释添加

hxd 3 meses atrás
pai
commit
b3ec565309

+ 13 - 0
portal-service-common/src/main/java/com/hfln/portal/common/dto/data/room/RegionInfo.java

@@ -1,5 +1,6 @@
 package com.hfln.portal.common.dto.data.room;
 
+import io.swagger.v3.oas.annotations.media.Schema;
 import lombok.Data;
 
 import java.math.BigDecimal;
@@ -7,26 +8,38 @@ import java.math.BigDecimal;
 @Data
 public class RegionInfo {
 
+
+    @Schema(description = "名称")
     private String name;
 
+    @Schema(description = "类型")
     private String type;
 
+    @Schema(description = "宽度")
     private BigDecimal width;
 
+    @Schema(description = "高度")
     private BigDecimal height;
 
+    @Schema(description = "距离顶点相对距离")
     private BigDecimal top;
 
+    @Schema(description = "距离左侧边相对距离")
     private BigDecimal left;
 
+    @Schema(description = "旋转角度: 0-不旋转,1-旋转90°,2-旋转180°,3-旋转270°")
     private Boolean rotate;
 
+    @Schema(description = "距离雷达的X距离")
     private BigDecimal yuanX;
 
+    @Schema(description = "距离雷达的Y距离")
     private BigDecimal yuanY;
 
+    @Schema(description = "长度")
     private String widthToM;
 
+    @Schema(description = "宽度")
     private String heightToM;
 
     private BigDecimal x;