package com.lesingle.edu.dto.response;

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

import java.time.LocalDateTime;

/**
 * 课程使用统计响应对象（增强版）
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "课程使用统计响应对象")
public class CourseUsageStatsVO {

    @Schema(description = "课程包 ID")
    private Long coursePackageId;

    @Schema(description = "课程包名称")
    private String coursePackageName;

    @Schema(description = "使用次数")
    private Integer usageCount;

    @Schema(description = "参与学生数（去重）")
    private Integer studentCount;

    @Schema(description = "平均时长（分钟）")
    private Integer avgDuration;

    @Schema(description = "最后使用时间")
    private LocalDateTime lastUsedAt;
}
