package com.erp.tenant.entity.report;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Map;

/**
 * 统计数据汇总VO（Dashboard用）
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ReportSummary {

    // ==================== 订单统计 ====================
    private Long monthOrdersTotal;
    private Long monthOrdersCompleted;
    private Long monthOrdersCancelled;
    private BigDecimal monthOrdersAmount;

    // ==================== API调用统计 ====================
    private Long monthApiCallsTotal;
    private Long monthApiCallsSuccess;
    private Long monthApiCallsFailed;
    private Long monthOrdersPulled;
    private BigDecimal apiSuccessRate;

    // ==================== 配额 ====================
    private Integer orderQuotaLimit;
    private Integer orderQuotaUsed;
    private Integer orderQuotaRemain;
    private BigDecimal orderQuotaPercent;

    private Integer apiDailyLimit;
    private Integer apiTodayUsed;
    private Integer apiDailyRemain;
    private BigDecimal apiDailyPercent;

    // ==================== 云仓 ====================
    private Long cloudWarehouseTotal;
    private Long cloudWarehouseShipped;
    private BigDecimal cloudWarehouseSuccessRate;
}
