package com.seer.teach.openapi.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDate;

import com.seer.teach.common.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * SN每日调用统计表
 * </p>
 *
 * @author Wang
 * @since 2025-10-31 13:31:24
 */
@Getter
@Setter
@TableName("open_sn_daily_stats")
@Schema(name = "SnDailyStatsEntity对象", description = "SN每日调用统计表")
public class SnDailyStatsEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @Schema(description = "SN码")
    @TableField("sn_code")
    private String snCode;

    @Schema(description = "统计日期")
    @TableField("`date`")
    private LocalDate date;

    @Schema(description = "总调用次数")
    @TableField("total_calls")
    private Long totalCalls;

    @Schema(description = "成功次数")
    @TableField("success_calls")
    private Long successCalls;

    @Schema(description = "失败次数")
    @TableField("fail_calls")
    private Long failCalls;

    @Schema(description = "平均耗时（毫秒）")
    @TableField("avg_use_time")
    private Long avgUseTime;

}
