package com.njcn.csdevice.pojo.param;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 
 * Description:
 * 接口文档访问地址：http://serverIP:port/swagger-ui.html
 * Date: 2023/4/7  11:29【需求编号】
 *
 * @author clam
 * @version V1.0.0
 */


@Data
public class CsDevModelQueryParm {

    @NotNull(message="当前页不能为空！")
    @Min(value = 1, message = "当前页不能为0")
    @ApiModelProperty(value = "当前页",name = "pageNum",dataType ="Integer",required = true)
    private Integer pageNum;
    /**显示条数*/
    @NotNull(message="显示条数不能为空！")
    @ApiModelProperty(value = "显示条数",name = "pageSize",dataType ="Integer",required = true)
    private Integer pageSize;
    @ApiModelProperty(value = "装置模板型号名称")
    private String devName;
    @ApiModelProperty(value = "模板名称")
    private String name;

    /**
     * 版本日期
     */
    @ApiModelProperty(value = "版本日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private String versionStartDate;

    @ApiModelProperty(value = "版本日期")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private String versionEndDate;
    @ApiModelProperty(value = "装置型号")
    private String devType;



}