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


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

/**
 * @author wcl
 * @date 2025/8/22 14:37
 * @description: 用户使用时长分布查询请求
 */
@Data
@Schema(description = "用户使用时长分布查询请求")
public class UserDistributionDTO {

	@Schema(description = "开始日期", example = "2025-08-21")
	@NotBlank(message = "开始日期不能为空")
	private String beginDate;

	@Schema(description = "渠道")
	private String channel;

	@Schema(description = "数据源ID")
	private String dataSourceId;

	@Schema(description = "时长类型：daily-单日，once-单次", example = "daily")
	private String durationType;

	@Schema(description = "是否返回图例", example = "true")
	private Boolean legend;

	@Schema(description = "关联ID（应用ID）", example = "5f6960d2b473963242a3b459")
	private String relatedId;

	@Schema(description = "时间单位：day-天", example = "day")
	private String timeUnit;

	@Schema(description = "类型：durationRange-时长范围、launchRange-使用频率、pageViewRange-访问页面、intervalRange-使用间隔")
	@NotBlank(message = "类型不能为空")
	private String type;

	@Schema(description = "应用版本", example = "1.0.0")
	private String version;

	@Schema(description = "视图类型")
	private String view;

}
