package com.reading.platform.dto.response;

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

/**
 * 任务完成信息响应
 */
@Data
@Schema(description = "任务完成信息响应")
public class TaskCompletionInfoResponse {

    @Schema(description = "完成记录 ID", example = "1")
    private String id;

    @Schema(description = "任务 ID", example = "100")
    private String taskId;

    @Schema(description = "学生 ID", example = "50")
    private String studentId;

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

    @Schema(description = "完成时间")
    private String completedAt;

    @Schema(description = "反馈")
    private String feedback;

    @Schema(description = "家长反馈")
    private String parentFeedback;

    @Schema(description = "任务信息")
    private TaskSimpleInfo task;

    /**
     * 任务简单信息
     */
    @Data
    @Schema(description = "任务简单信息")
    public static class TaskSimpleInfo {
        @Schema(description = "任务 ID")
        private String id;
        @Schema(description = "任务名称")
        private String name;
        @Schema(description = "任务类型")
        private String type;
    }
}
