From 4ade291ebd74dd4cd42556f07bd4f205f73c3313 Mon Sep 17 00:00:00 2001
From: wl <173@qq.com>
Date: 星期三, 28 九月 2022 18:34:22 +0800
Subject: [PATCH] 案件池相关接口

---
 ycl-platform/src/main/java/com/ycl/entity/dict/DataDictionary.java |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/ycl-platform/src/main/java/com/ycl/entity/dict/DataDictionary.java b/ycl-platform/src/main/java/com/ycl/entity/dict/DataDictionary.java
index d8656ac..66605c2 100644
--- a/ycl-platform/src/main/java/com/ycl/entity/dict/DataDictionary.java
+++ b/ycl-platform/src/main/java/com/ycl/entity/dict/DataDictionary.java
@@ -4,9 +4,13 @@
 import com.baomidou.mybatisplus.annotation.TableField;
 import com.baomidou.mybatisplus.annotation.TableId;
 import com.baomidou.mybatisplus.annotation.TableName;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
 import lombok.Data;
 import lombok.EqualsAndHashCode;
 
+import javax.validation.constraints.NotBlank;
+import javax.validation.constraints.NotNull;
 import java.io.Serializable;
 
 /**
@@ -20,6 +24,7 @@
 @Data
 @EqualsAndHashCode(callSuper = false)
 @TableName("ums_data_dictionary")
+@ApiModel(value = "瀛楀吀琛�")
 public class DataDictionary implements Serializable {
 
     private static final long serialVersionUID = 1L;
@@ -28,48 +33,61 @@
      * 涓婚敭
      */
     @TableId(value = "id", type = IdType.AUTO)
+    @ApiModelProperty(value = "涓婚敭",dataType = "Long")
     private Long id;
 
     /**
      * 瀛楀吀鍊�
      */
     @TableField("name")
+    @ApiModelProperty(value = "杩濊涓殑绫诲瀷/澶х被/灏忕被/妗堢敱,杩濆缓涓殑/绫诲瀷/绫诲埆",dataType = "String")
+    @NotBlank(message = "瀛楀吀鍊间负绌�")
     private String name;
 
     /**
      * 缂栫爜
      */
     @TableField("code")
+    @ApiModelProperty(value = "缂栫爜 ps:鏆傛椂涓嶄紶",dataType = "String")
+    @NotBlank(message = "缂栫爜涓虹┖")
     private String code;
 
     /**
      * 鐖剁骇id
      */
     @TableField("parent_id")
+    @ApiModelProperty(value = "鐖剁骇id ps:涓轰笂涓�绾х殑id",dataType = "String")
     private String parentId;
 
     /**
      * 灞傜骇
      */
     @TableField("level")
+    @ApiModelProperty(value = "绾у埆:杩濊涓被鍨�/澶х被/灏忕被/妗堢敱 鍒嗗埆鏄�1/2/3/4 ,杩濆缓涓被鍨�/绫诲埆 鍒嗗埆鏄�1/2",dataType = "Integer")
+    @NotNull(message = "灞傜骇涓虹┖")
     private Short level;
 
     /**
      * 瀛楀吀绫诲瀷
      */
     @TableField("type_name")
+    @ApiModelProperty(value = "瀛楀吀绫诲瀷:杩濊涓洪棶棰樼被鍨�,杩濆缓涓鸿繚寤虹被鍨�",dataType = "String")
+    @NotBlank(message = "瀛楀吀绫诲瀷涓虹┖")
     private String typeName;
 
     /**
      * 瀛楀吀绫诲瀷浠g爜
      */
     @TableField("type_code")
+    @ApiModelProperty(value = "瀛楀吀绫诲瀷浠g爜:杩濊涓�'01',杩濆缓涓�'06'",dataType = "String")
+    @NotBlank(message = "瀛楀吀绫诲瀷涓虹┖")
     private String typeCode;
 
     /**
      * 澶囨敞
      */
     @TableField("remark")
+    @ApiModelProperty(value = "澶囨敞 ps:棰勭暀瀛楁",dataType = "String")
     private String remark;
 
 }

--
Gitblit v1.8.0