APP接口入参校验

master
gongzhenkun 2 years ago
parent 0543087b0e
commit e0de3ddf97

@ -2,6 +2,10 @@ package com.ruoyi.system.domain.req;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
/** /**
* App * App
@ -63,6 +67,8 @@ public class AppPatientReq {
* *
*/ */
@ApiModelProperty("年龄") @ApiModelProperty("年龄")
@Max(120)
@Min(0)
private Integer age; private Integer age;
/** /**
@ -87,6 +93,7 @@ public class AppPatientReq {
* *
*/ */
@ApiModelProperty("基础疾病") @ApiModelProperty("基础疾病")
@Length(max = 30)
private String disease; private String disease;
public Long getDoctorId() { public Long getDoctorId() {

Loading…
Cancel
Save