package com.pig4cloud.pig.marketing.api.dto.mongo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.Max;
import java.io.Serializable;

/**
 * @author: wcl
 * @date: 2025-09-07
 * @description: 用户地区统计查询请求DTO
 */
@Data
@Schema(description = "用户地区统计查询请求")
public class UserRegionStatisticsDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "天数不能为空")
    @Min(value = 1, message = "天数不能小于1")
    @Max(value = 365, message = "天数不能大于365")
    @Schema(description = "查询天数", example = "7", required = true)
    private Integer days;

    @Schema(description = "查询类型", example = "visitor", required = true)
    private String queryType; // visitor, active, total
}
