package thyyxxk.webserver.entity.clockin;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class QueryFromDbParam {
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date start;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date end;
    @NotNull(message = "当前页码不能为空。")
    private Integer currentPage;
    @NotNull(message = "单页数据量不能为空。")
    private Integer pageSize;
}
