package com.reading.platform.dto.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.time.LocalDate;
import java.util.List;

/**
 * 从模板创建任务请求
 */
@Data
@Schema(description = "从模板创建任务请求")
public class CreateTaskFromTemplateRequest {

    @Schema(description = "模板 ID")
    private String templateId;

    @Schema(description = "目标 ID 列表（班级 ID 或学生 ID）")
    @NotEmpty(message = "目标 ID 列表不能为空")
    private List<String> targetIds;

    @Schema(description = "目标类型：CLASS-班级，STUDENT-学生")
    private String targetType = "CLASS";

    @Schema(description = "任务开始日期")
    private LocalDate startDate;

    @Schema(description = "任务截止日期")
    private LocalDate endDate;

}
