package com.njcn.csharmonic.pojo.param;

import com.njcn.web.pojo.annotation.DateTimeStrValid;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;


@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class MainLineQueryParam {
    @ApiModelProperty("关键词")
    private String keywords;

    @ApiModelProperty(name = "searchBeginTime", value = "开始时间")
    @NotBlank(message = "起始时间不可为空")
    @DateTimeStrValid(message = "起始时间格式出错")
    private String searchBeginTime;

    @ApiModelProperty(name = "searchEndTime", value = "结束时间")
    @NotBlank(message = "结束时间不可为空")
    private String searchEndTime;

    @ApiModelProperty(value = "页码", example = "1")
    private int pageNum = 1;

    @ApiModelProperty(value = "每页记录数", example = "10")
    private int pageSize = 10;
}
