package cn.skcks.matrix.v2.model.location.record.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Schema(title = "按时间段 分页查询定位记录列表")
@EqualsAndHashCode(callSuper = true)
@Data
public class PageLocationRecordParams extends LocationRecordParams{
    @Schema(description = "页数")
    @NotNull(message = "page 不能为空")
    @Min(value = 1, message = "page 必须为正整数")
    int page;

    @Schema(description = "每页条数", example = "10")
    @NotNull(message = "size 不能为空")
    @Min(value = 1, message = "size 必须为正整数")
    int size;
}
