package com.cmvr.test.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("节点执行实例对象")
public class TeNodeInst {

    @ApiModelProperty("主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("任务实例ID")
    private String instId;

    @ApiModelProperty("任务ID")
    private String taskId;

    @ApiModelProperty("检测项ID")
    private String itemId;

    @ApiModelProperty("节点ID")
    private String nodeId;

    @ApiModelProperty("节点类型")
    private String nodeType;

    @ApiModelProperty("执行来源（EDGE / LLM / SYSTEM）")
    private String operate;

    @ApiModelProperty("执行操作（CAMERA_START / OCR / 等）")
    private String action;

    @ApiModelProperty("状态（RUNNING / SUCCESS / FAILED / PAUSED / STOPPED）")
    private String status;

    @ApiModelProperty("输入参数（已解析）")
    private String paramsIn;

    @ApiModelProperty("输出参数")
    private String paramsOut;

    @ApiModelProperty("执行日志/备注")
    private String message;

    @ApiModelProperty("循环节点的层级")
    private String iteration;

    @ApiModelProperty("开始时间戳（ms）")
    private Long startTime;

    @ApiModelProperty("结束时间戳（ms）")
    private Long endTime;
}
