package com.lesingle.edu.dto.request;

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

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

@Data
@Schema(description = "任务更新请求")
public class TaskUpdateRequest {

    @Schema(description = "任务标题")
    private String title;

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

    @Schema(description = "任务类型")
    private String type;

    @Schema(description = "任务类型（前端兼容 taskType）")
    private String taskType;

    @Schema(description = "关联绘本名称")
    private String relatedBookName;

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

    @Schema(description = "课程 ID（前端兼容 relatedCourseId）")
    private Long relatedCourseId;

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

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

    @Schema(description = "状态")
    private String status;

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

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

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

}
