package com.ai.da.model.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class TaskDTO<T> {

    private String taskId;

    // 可选type : SR GENERATE
    private String type;

    // 输入的图片名
    private String imageName;

    private T inputParam;

    private String outputImage;

    // 任务状态，暂定状态：排队中、执行中、成功/失败
    private String status;

    // 当前任务的创建时间
    private String createDate;

    public TaskDTO(String taskId, String type, String imageName, T inputParam, String status, String createDate) {
        this.taskId = taskId;
        this.type = type;
        this.imageName = imageName;
        this.inputParam = inputParam;
        this.status = status;
        this.createDate = createDate;
    }

    public TaskDTO(String taskId, String type, T inputParam, String status, String createDate) {
        this.taskId = taskId;
        this.type = type;
        this.inputParam = inputParam;
        this.status = status;
        this.createDate = createDate;
    }
}
