package com.example.jz.modle.dto; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotNull; import java.util.Date; @Data @ApiModel(description = "添加案件字段", value = "CauseDto") public class CauseDto { //案件编号 @ApiModelProperty(dataType = "String", value = "案件编号") @NotBlank(message = "案件编号不能空") private String number; //案件名称 @ApiModelProperty(dataType = "String", value = "案件名称") @NotBlank(message = "案件名称不能空") private String name; //第一次案发时间 @ApiModelProperty(dataType = "Date", value = "第一次案发时间") @NotNull(message = "第一次案发时间不能空") private Date firstTime; //负责人id @ApiModelProperty(dataType = "Integer", value = "负责人id") @NotNull(message = "负责人不能为空") private Integer userId; //案件描述 @ApiModelProperty(dataType = "String", value = "案件描述") @NotBlank(message = "案件描述不能为空") private String description; //案件状态 @ApiModelProperty(dataType = "Integer", value = "案件状态") @NotNull(message = "案件状态") private Integer status; @ApiModelProperty(dataType = "String", value = "金钱") @NotBlank(message = "预估总金额不能为空") private String totalMoney; }