DeviceSdeviceDateBo.java 1.18 KB
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;
}