mateclaw/mateclaw-server/src/main/java/vip/mate/cron/model/CronJobEntity.java

60 lines
1.3 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package vip.mate.cron.model;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDateTime;
/**
* 定时任务实体
*
* @author MateClaw Team
*/
@Data
@TableName("mate_cron_job")
public class CronJobEntity {
@TableId(type = IdType.ASSIGN_ID)
private Long id;
/** 任务名称 */
private String name;
/** 5 字段 cron 表达式(分 时 日 月 周) */
private String cronExpression;
/** 时区 */
private String timezone;
/** 关联 Agent ID */
private Long agentId;
/** 任务类型text | agent */
private String taskType;
/** 触发消息task_type=text 时使用) */
@TableField(updateStrategy = FieldStrategy.ALWAYS)
private String triggerMessage;
/** 执行目标task_type=agent 时使用) */
@TableField(updateStrategy = FieldStrategy.ALWAYS)
private String requestBody;
/** 是否启用 */
private Boolean enabled;
/** 下次执行时间 */
private LocalDateTime nextRunTime;
/** 上次执行时间 */
private LocalDateTime lastRunTime;
@TableField(fill = FieldFill.INSERT)
private LocalDateTime createTime;
@TableField(fill = FieldFill.INSERT_UPDATE)
private LocalDateTime updateTime;
private Integer deleted;
}