package com.erp.dashboard.dto;

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

import java.math.BigDecimal;

/**
 * 本月API调用统计DTO
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "本月API调用统计")
public class MonthApiCallsDTO {

    @Schema(description = "API调用总次数")
    private Integer total;

    @Schema(description = "成功次数")
    private Integer success;

    @Schema(description = "失败次数")
    private Integer failed;

    @Schema(description = "拉取订单总数")
    private Integer ordersPulled;

    @Schema(description = "成功率")
    private BigDecimal successRate;
}
