From a70919b4f7baab856125f36e5bd41f5ee81be680 Mon Sep 17 00:00:00 2001
From: huliguo <2023611923@qq.com>
Date: 星期二, 13 五月 2025 09:41:35 +0800
Subject: [PATCH] 修改年份切换字段不为必填

---
 src/main/java/com/cl/pojo/dto/AddUserDTO.java |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/cl/pojo/dto/AddUserDTO.java b/src/main/java/com/cl/pojo/dto/AddUserDTO.java
new file mode 100644
index 0000000..dccdf55
--- /dev/null
+++ b/src/main/java/com/cl/pojo/dto/AddUserDTO.java
@@ -0,0 +1,16 @@
+package com.cl.pojo.dto;
+
+import lombok.Data;
+import javax.validation.constraints.NotEmpty;
+import javax.validation.constraints.Pattern;
+
+@Data
+public class AddUserDTO {
+    @NotEmpty(message = "姓名不能为空")
+    private String name;
+    @NotEmpty(message = "联系方式不能为空")
+    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
+    private String phone;
+
+    private String remark;//备注
+}

--
Gitblit v1.7.1