package com.pharmacopoeia.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "rate-limit")
public class RateLimitProperties {
    private int perMinute = 60;
    /** 埋点写入 /api/v1/analytics/events 的独立限流（多系统调用，阈值给大） */
    private int analyticsPerMinute = 600;
    /** 埋点事件导出 GET /api/v1/analytics/events/export 的独立限流（重查询，阈值给小） */
    private int exportPerMinute = 5;
    private int perHour = 999999;
    private int perDay = 999999;
}
