package com.njcn.web.pojo.param;

import com.njcn.common.pojo.constant.PatternRegex;
import com.njcn.web.constant.ValidMessage;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

/**
 * @author hongawen
 * @version 1.0.0
 * @date 2021年12月20日 15:35
 */
@Data
public class BaseParam implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("搜索值")
    @Pattern(regexp = PatternRegex.DES32_REGEX, message = ValidMessage.SEARCH_DATA_ERROR)
    private String searchValue;

    @ApiModelProperty("开始时间")
    private String searchBeginTime;

    @ApiModelProperty("结束时间")
    private String searchEndTime;

    @ApiModelProperty("状态")
    private Integer searchState;

    @ApiModelProperty("排序字段")
    private String sortBy;

    @ApiModelProperty("排序方式:asc-升序,desc-降序")
    private String orderBy;

    @ApiModelProperty("页码")
    private Integer pageNum;

    @ApiModelProperty("页面尺寸")
    private Integer pageSize;


}
