package com.lesingle.edu.dto.response;

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

import java.time.LocalDateTime;

/**
 * 课程活动响应
 * 用于返回课程活动信息给前端
 */
@Data
@Builder
@Schema(description = "课程活动响应")
public class CourseActivityResponse {

    @Schema(description = "ID")
    private Long id;

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

    @Schema(description = "标题")
    private String title;

    @Schema(description = "类型")
    private String type;

    @Schema(description = "内容")
    private String content;

    @Schema(description = "材料")
    private String materials;

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

    @Schema(description = "排序号")
    private Integer sortOrder;

    @Schema(description = "创建时间")
    private LocalDateTime createdAt;

    @Schema(description = "更新时间")
    private LocalDateTime updatedAt;
}
