package com.dora.dto;

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

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TaskProgressDto {

    @Schema(description = "任务编号")
    private String taskNo;

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

    @Schema(description = "进度百分比")
    private Integer progress;

    @Schema(description = "当前进度的文本消息")
    private String message;

    @Schema(description = "最终生成的结果URL")
    private String resultUrl;

    @Schema(description = "如果任务失败，则为错误信息")
    private String errorMessage;
}
