package com.nanri.aiimage.modules.productrisk.model.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@Schema(description = "商品风险任务概要（biz_file_task 核心字段）")
public class ProductRiskTaskItemVo {

    @Schema(description = "任务主键", example = "200")
    private Long id;

    @JsonProperty("taskNo")
    @Schema(description = "业务单号，如 PRODUCT_RISK_RESOLVE-雪花 id")
    private String taskNo;

    @Schema(description = "任务状态：RUNNING 执行中；SUCCESS 已结束且至少一店成功；FAILED 已结束且全部失败或整体失败")
    private String status;

    @JsonProperty("errorMessage")
    @Schema(description = "失败或部分失败时的汇总错误说明；成功且无附加信息时可能为空")
    private String errorMessage;

    @JsonProperty("createdAt")
    @Schema(description = "创建时间（字符串格式，服务端 LocalDateTime.toString()）")
    private String createdAt;

    @JsonProperty("updatedAt")
    @Schema(description = "最后更新时间")
    private String updatedAt;

    @JsonProperty("finishedAt")
    @Schema(description = "结束时间；RUNNING 时通常为空")
    private String finishedAt;
}
