From e0de3ddf97b042e4a9deb10b43e36483f9d021d8 Mon Sep 17 00:00:00 2001 From: gongzhenkun <1658878546@qq.com> Date: Tue, 23 Aug 2022 10:50:07 +0800 Subject: [PATCH] =?UTF-8?q?APP=E6=8E=A5=E5=8F=A3=E5=85=A5=E5=8F=82?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/system/domain/req/AppPatientReq.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/req/AppPatientReq.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/req/AppPatientReq.java index 2e08f18..440d438 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/domain/req/AppPatientReq.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/req/AppPatientReq.java @@ -2,6 +2,10 @@ package com.ruoyi.system.domain.req; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import org.hibernate.validator.constraints.Length; + +import javax.validation.constraints.Max; +import javax.validation.constraints.Min; /** * App端添加患者入参实体 @@ -63,6 +67,8 @@ public class AppPatientReq { * 年龄 */ @ApiModelProperty("年龄") + @Max(120) + @Min(0) private Integer age; /** @@ -87,6 +93,7 @@ public class AppPatientReq { * 基础疾病 */ @ApiModelProperty("基础疾病") + @Length(max = 30) private String disease; public Long getDoctorId() {