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


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

import java.io.Serial;
import java.io.Serializable;

/**
 * @author: lwh
 * @date: 2025-08-07
 * @description: 获取版本用户来源入参
 */
@Data
@Schema(description = "获取版本用户来源入参")
public class GetVersionDistributionDTO implements Serializable {

	@Serial
	private static final long serialVersionUID = 1L;

	/**
	 * 应用ID
	 */
	@NotBlank(message = "应用ID不能为空")
	@Schema(description = "应用ID", example = "Fqs2CL9CUn7U1AqilSFXgb")
	private String appId;

	/**
	 * 版本
	 */
	@NotBlank(message = "版本不能为空")
	@Schema(description = "版本", example = "1.0.0")
	private String version;

	/**
	 * 时间单位
	 */
	@NotBlank(message = "时间单位不能为空")
	@Schema(description = "时间单位,昨天-day,过去7天-week,过去30天-month", example = "day")
	private String timeUnit;

	/**
	 * 类型
	 */
	@NotBlank(message = "类型不能为空")
	@Schema(description = "类型,upgradeChannel-升级用户渠道",example = "upgradeChannel")
	private String type;
}
