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-04
 */
@Data
@Schema(description = "批量保存教学目标请求参数")
public class TeachGoalsBatchSaveReq {

    @Schema(description = "知识点ID")
    @NotNull(message = "知识点ID不能为空")
    private Integer knowId;

    @Schema(description = "教学目标列表")
    private List<TeachGoalItem> goals;

    @Data
    @Schema(description = "教学目标项")
    public static class TeachGoalItem {

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

        @Schema(description = "教学目标")
        @NotBlank(message = "教学目标不能为空")
        private String goal;

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

        @Schema(description = "教学重点")
        private String point;
    }
}