package com.pig4cloud.pig.statistics.api.dto.user;


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

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.List;

/**
 * @author: lwh
 * @date: 2025-08-07
 * @description: 分页查询单版本详情入参
 */
@Data
@Schema(description = "分页查询单版本详情入参")
public class PageSingleVersionDetailDTO implements Serializable {

	@Serial
	private static final long serialVersionUID = 1L;

	/**
	 * 开始时间
	 */
	@NotNull(message = "开始时间不能为空")
	@Schema(description = "开始时间", example = "2025-07-29")
	private LocalDate fromDate;

	/**
	 * 结束时间
	 */
	@NotNull(message = "结束时间不能为空")
	@Schema(description = "结束时间", example = "2025-08-05")
	private LocalDate toDate;


	/**
	 * 版本
	 */
	@Schema(description = "版本", example = "[\"1.0.0\"]")
	private List<String> version;

	/**
	 * 每页显示条数，默认 10
	 */
	@Schema(description = "每页显示条数")
	private long size = 10;

	/**
	 * 当前页
	 */
	@Schema(description = "当前页")
	private long current = 1;
}
