From c14d9e1eba68d0127d19a8bd4e0fc80be5ad3138 Mon Sep 17 00:00:00 2001
From: xuhy <3313886187@qq.com>
Date: 星期二, 11 十一月 2025 18:13:07 +0800
Subject: [PATCH] 大屏接口校验规则
---
ruoyi-system/src/main/java/com/ruoyi/system/model/TLargeVolunteer.java | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/model/TLargeVolunteer.java b/ruoyi-system/src/main/java/com/ruoyi/system/model/TLargeVolunteer.java
index 001a3fc..0edf8e2 100644
--- a/ruoyi-system/src/main/java/com/ruoyi/system/model/TLargeVolunteer.java
+++ b/ruoyi-system/src/main/java/com/ruoyi/system/model/TLargeVolunteer.java
@@ -7,6 +7,7 @@
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
+import org.hibernate.validator.constraints.Length;
import java.io.Serializable;
import java.math.BigDecimal;
@@ -32,6 +33,7 @@
@TableId(value = "id", type = IdType.ASSIGN_ID)
private String id;
+ @Length(max = 20,message = "姓名不能超过20个字符")
@ApiModelProperty(value = "姓名")
@TableField("user_name")
private String userName;
@@ -45,6 +47,7 @@
@TableField("birth_date")
private LocalDate birthDate;
+ @Length(max = 40,message = "服务区域不能超过40个字符")
@ApiModelProperty(value = "服务区域")
@TableField("service_area")
private String serviceArea;
--
Gitblit v1.7.1