|
|
@@ -3,6 +3,9 @@ package com.template.model.dto;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
import lombok.Data;
|
|
|
|
|
|
+import javax.validation.constraints.NotBlank;
|
|
|
+import javax.validation.constraints.Pattern;
|
|
|
+
|
|
|
@Data
|
|
|
public class ApplicationProcedureTemporaryDto {
|
|
|
@ApiModelProperty(value = "申请人id")
|
|
|
@@ -21,5 +24,7 @@ public class ApplicationProcedureTemporaryDto {
|
|
|
private String reasonApplication;
|
|
|
|
|
|
@ApiModelProperty(value = "房间数量")
|
|
|
+ @NotBlank(message = "房间数量不能为空")
|
|
|
+ @Pattern(regexp = "^([1-9][0-9]*){1,3}$", message = "房间数量需填入不为0的数字")
|
|
|
private String houseCount;
|
|
|
}
|