package com.xunhong.erp.turbo.dify.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

// Data部分的DTO类
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class DataDTO<T> {
	private String id;

	@JsonProperty("workflow_id")
	private String workflowId;

	private String status;

	private OutputDTO<T> outputs;

	private Object error;

	@JsonProperty("elapsed_time")
	private Double elapsedTime;

	@JsonProperty("total_tokens")
	private Integer totalTokens;

	@JsonProperty("total_steps")
	private Integer totalSteps;

	@JsonProperty("created_at")
	private Long createdAt;

	@JsonProperty("finished_at")
	private Long finishedAt;
}
