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-06
 * @description: 分页查询次日留存率详情
 */
@Data
@Schema(description = "分页查询次日留存率详情入参")
public class PageRetentionDetailDTO implements Serializable {

	@Serial
	private static final long serialVersionUID = 1L;

	/**
	 * 渠道
	 */
	@Schema(description = "渠道", example = "[\"App Store\"]")
	private List<String> channel;

	/**
	 * 开始时间
	 */
	@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;

}
