package com.lingyue.parse.vo;

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

import java.util.Date;
import java.util.List;

/**
 * 解析任务中心视图对象
 */
@Data
@Schema(description = "解析任务中心视图对象")
public class ParseTaskCenterVO {

    @Schema(description = "任务ID")
    private String id;

    @Schema(description = "文档ID")
    private String documentId;

    @Schema(description = "任务类型，当前固定为 parse")
    private String taskType = "parse";

    @Schema(description = "任务名称")
    private String name;

    @Schema(description = "状态: pending/processing/completed/failed")
    private String status;

    @Schema(description = "整体进度(0-100)")
    private Integer progress;

    @Schema(description = "当前步骤")
    private String currentStep;

    @Schema(description = "错误消息")
    private String errorMessage;

    @Schema(description = "开始时间")
    private Date startedAt;

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

    @Schema(description = "创建时间")
    private Date createdAt;

    @Schema(description = "更新时间")
    private Date updatedAt;

    @Schema(description = "阶段列表")
    private List<ParseTaskStageVO> stages;
}


