package com.lesingle.edu.dto.request;

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

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

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

    @NotBlank(message = "任务标题不能为空")
    @Schema(description = "任务标题")
    private String title;

    @Schema(description = "任务描述")
    private String description;

    @Schema(description = "开始日期")
    private String startDate;

    @Schema(description = "截止日期")
    private String endDate;

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

    @Schema(description = "目标 IDs")
    private java.util.List<Long> targetIds;

}
