DeviceSdeviceDateBo.java
1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package com.glsx.model.BO;
import com.glsx.model.Basemodel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
@Data
@ToString(callSuper = true)
@ApiModel
public class DeviceSdeviceDateBo extends Basemodel {
//开始日期 2019-08-11
@NotBlank(message = "开始日期不能为空")
@DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "开始日期 如:2019-08",required=true)
private String start_date;
//结束日期 2019-08-15
@NotBlank(message = "结束日期不能为空")
@DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "结束日期 如:2019-08",required=true)
private String end_date;
//设备号
@NotBlank(message = "设备号sn不能为空")
@ApiModelProperty(value = "设备号",required=true)
private String sn;
//设备类型
@NotNull(message = "设备类型不能为空")
@ApiModelProperty(value = "设备类型",required=true)
private String device_type;
}