package com.reading.platform.dto.request;

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

import java.time.LocalDate;

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

    @Schema(description = "任务标题", example = "绘本阅读作业")
    private String title;

    @Schema(description = "描述", example = "请阅读《三只小猪》并回答问题")
    private String description;

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

    @Schema(description = "开始日期", example = "2024-01-01")
    private LocalDate startDate;

    @Schema(description = "截止日期", example = "2024-01-07")
    private LocalDate dueDate;

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

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

}
