package org.dromara.inspection.domain.bo;

import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 任务执行提交业务对象
 *
 * @author Lion Li
 * @date 2025-01-13
 */
@Data
public class ArExecutionSubmitBo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 执行ID
     */
    @NotNull(message = "执行ID不能为空")
    private Long id;

    /**
     * 状态(pending/in_progress/completed/cancelled)
     */
    private String status;

    /**
     * 开始时间
     */
    private Date startTime;

    /**
     * 结束时间
     */
    private Date endTime;

    /**
     * 步骤执行树
     */
    @Valid
    private List<ArStepRecordTreeBo> stepTree;

}
