package com.erp.dashboard.dto;

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

/**
 * Dashboard请求参数DTO
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "Dashboard请求参数")
public class DashboardRequest {

    @Schema(description = "查询近N天数据，默认7天")
    @Min(value = 1, message = "recent_days最小值为1")
    @Max(value = 90, message = "recent_days最大值为90")
    private Integer recentDays = 7;
}
