package com.jeesharp.business.modules.finance.platformrevenue.dto;

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

import java.time.LocalDate;

/**
 * 平台收入日汇总手动触发请求。
 *
 * @author jeesharp
 * @since 2026-06-29
 */
@Data
@Schema(description = "平台收入日汇总触发请求")
public class PlatformRevenueRollupDTO {

    @Schema(description = "指定统计自然日（与 recentDays 二选一；均空则汇总昨日）")
    private LocalDate statDate;

    @Min(value = 1, message = "回填天数至少为 1")
    @Max(value = 90, message = "回填天数不能超过 90")
    @Schema(description = "回填最近自然日天数（截至昨日，与 statDate 二选一）")
    private Integer recentDays;
}
