package com.njcn.energy.pojo.param;

import com.njcn.web.constant.ValidMessage;
import com.njcn.web.pojo.annotation.DateTimeStrValid;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * pqs
 *
 * @author cdf
 * @date 2022/4/1
 */
@Data
public class EnergyBaseParam implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @NotBlank(message = ValidMessage.ID_NOT_BLANK)
    private String id;

    @ApiModelProperty("lineId")
    @NotBlank(message = ValidMessage.ID_NOT_BLANK)
    private String lineId;

    @ApiModelProperty("pageNum")
    private Integer pageNum;

    @ApiModelProperty("pageSize")
    private Integer pageSize;

    @ApiModelProperty("startTime")

    @DateTimeStrValid
    private String startTime;

    @ApiModelProperty("endTime")
    @DateTimeStrValid
    private String endTime;


}
