package com.reading.platform.dto.request;

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

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

@Data
@Schema(description = "任务创建请求")
public class TaskCreateRequest {

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

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

    @Schema(description = "任务类型: 阅读、作业、活动")
    private String type;

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

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

    @Schema(description = "截止日期")
    private LocalDate dueDate;

    @Schema(description = "附件（JSON数组）")
    private String attachments;

    @Schema(description = "目标类型: 班级、学生")
    private String targetType;

    @Schema(description = "目标ID列表")
    private List<String> targetIds;

}
