From a12f6472da6118fa6e70211c3a86063239b97528 Mon Sep 17 00:00:00 2001
From: 疯狂的狮子li <15040126243@163.com>
Date: 星期二, 17 一月 2023 16:24:06 +0800
Subject: [PATCH] update 优化 实体类中校验注解的提示信息

---
 ruoyi-system/src/main/java/com/ruoyi/system/domain/SysPost.java |   29 +++++++++--------------------
 1 files changed, 9 insertions(+), 20 deletions(-)

diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysPost.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysPost.java
index b0b8a11..a751c74 100644
--- a/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysPost.java
+++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysPost.java
@@ -8,14 +8,12 @@
 import com.ruoyi.common.annotation.ExcelDictFormat;
 import com.ruoyi.common.convert.ExcelDictConvert;
 import com.ruoyi.common.core.domain.BaseEntity;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
 import lombok.Data;
 import lombok.EqualsAndHashCode;
-import lombok.experimental.Accessors;
 
-import javax.validation.constraints.NotBlank;
-import javax.validation.constraints.Size;
+import jakarta.validation.constraints.NotBlank;
+import jakarta.validation.constraints.NotNull;
+import jakarta.validation.constraints.Size;
 
 /**
  * 宀椾綅琛� sys_post
@@ -25,16 +23,13 @@
 
 @Data
 @EqualsAndHashCode(callSuper = true)
-@Accessors(chain = true)
 @TableName("sys_post")
 @ExcelIgnoreUnannotated
-@ApiModel("宀椾綅淇℃伅涓氬姟瀵硅薄")
 public class SysPost extends BaseEntity {
 
     /**
      * 宀椾綅搴忓彿
      */
-    @ApiModelProperty(value = "宀椾綅搴忓彿")
     @ExcelProperty(value = "宀椾綅搴忓彿")
     @TableId(value = "post_id")
     private Long postId;
@@ -42,47 +37,41 @@
     /**
      * 宀椾綅缂栫爜
      */
-    @ApiModelProperty(value = "宀椾綅缂栫爜")
     @ExcelProperty(value = "宀椾綅缂栫爜")
     @NotBlank(message = "宀椾綅缂栫爜涓嶈兘涓虹┖")
-    @Size(min = 0, max = 64, message = "宀椾綅缂栫爜闀垮害涓嶈兘瓒呰繃64涓瓧绗�")
+    @Size(min = 0, max = 64, message = "宀椾綅缂栫爜闀垮害涓嶈兘瓒呰繃{max}涓瓧绗�")
     private String postCode;
 
     /**
      * 宀椾綅鍚嶇О
      */
-    @ApiModelProperty(value = "宀椾綅鍚嶇О")
     @ExcelProperty(value = "宀椾綅鍚嶇О")
     @NotBlank(message = "宀椾綅鍚嶇О涓嶈兘涓虹┖")
-    @Size(min = 0, max = 50, message = "宀椾綅鍚嶇О闀垮害涓嶈兘瓒呰繃50涓瓧绗�")
+    @Size(min = 0, max = 50, message = "宀椾綅鍚嶇О闀垮害涓嶈兘瓒呰繃{max}涓瓧绗�")
     private String postName;
 
     /**
      * 宀椾綅鎺掑簭
      */
-    @ApiModelProperty(value = "宀椾綅鎺掑簭")
     @ExcelProperty(value = "宀椾綅鎺掑簭")
-    @NotBlank(message = "鏄剧ず椤哄簭涓嶈兘涓虹┖")
-    private String postSort;
+    @NotNull(message = "鏄剧ず椤哄簭涓嶈兘涓虹┖")
+    private Integer postSort;
 
     /**
      * 鐘舵�侊紙0姝e父 1鍋滅敤锛�
      */
-    @ApiModelProperty(value = "鐘舵�侊紙0姝e父 1鍋滅敤锛�")
-	@ExcelProperty(value = "鐘舵��", converter = ExcelDictConvert.class)
-	@ExcelDictFormat(dictType = "sys_common_status")
+    @ExcelProperty(value = "鐘舵��", converter = ExcelDictConvert.class)
+    @ExcelDictFormat(dictType = "sys_normal_disable")
     private String status;
 
     /**
      * 澶囨敞
      */
-    @ApiModelProperty(value = "澶囨敞")
     private String remark;
 
     /**
      * 鐢ㄦ埛鏄惁瀛樺湪姝ゅ矖浣嶆爣璇� 榛樿涓嶅瓨鍦�
      */
-    @ApiModelProperty(value = "鐢ㄦ埛鏄惁瀛樺湪姝ゅ矖浣嶆爣璇� 榛樿涓嶅瓨鍦�")
     @TableField(exist = false)
     private boolean flag = false;
 

--
Gitblit v1.9.3