package org.dromara.zhishu.domain.bo;

import org.dromara.zhishu.domain.RunningTask;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 执行的任务业务对象 t_running_task
 *
 * @author yxy
 * @date 2025-07-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = RunningTask.class, reverseConvertGenerate = false)
public class RunningTaskBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 任务id
     */
    private Long taskId;

    /**
     * 任务名称
     */
    private String taskName;

    /**
     * 优先级
     */
    private Long priority;

    /**
     * 内容json字符串
     */
    private String data;

    /**
     * 状态  0 未执行  1 执行中  2 执行完成
     */
    private String status;

    /**
     * 任务执行完返回的数据
     */
    private String callBackData;


}
