package com.seer.teach.admin.request;

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

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.util.List;

/**
 * <p>
 * 批量保存讲课稿请求参数
 * </p>
 *
 * @author Lingma
 * @since 2025-12-11
 */
@Data
@Schema(description = "批量保存讲课稿请求参数")
public class TeachTextsBatchSaveReq {

    @Schema(description = "教学目标ID")
    @NotNull(message = "教学目标ID不能为空")
    private Integer goalId;

    @Schema(description = "讲课稿列表")
    private List<TeachTextItem> texts;

    @Data
    @Schema(description = "讲课稿项")
    public static class TeachTextItem {

        @Schema(description = "排序ID")
        @NotNull(message = "排序ID不能为空")
        private Integer sort;

        @Schema(description = "讲课稿内容")
        @NotBlank(message = "讲课稿内容不能为空")
        private String text;

        @Schema(description = "视频链接")
        private String videoUrl;
    }
}