using Tiobon.Core.Model.ViewModels; using SqlSugar; using System; using System.Collections.Generic; namespace Tiobon.Core.Model.Models { /// /// 任务计划表 /// public class TasksQz : RootEntityTkey { /// /// 任务名称 /// [SugarColumn(Length = 200, IsNullable = true)] public string Name { get; set; } /// /// 任务分组 /// [SugarColumn(Length = 200, IsNullable = true)] public string JobGroup { get; set; } /// /// 任务运行时间表达式 /// [SugarColumn(Length = 200, IsNullable = true)] public string Cron { get; set; } /// /// 任务所在DLL对应的程序集名称 /// [SugarColumn(Length = 200, IsNullable = true)] public string AssemblyName { get; set; } /// /// 任务所在类 /// [SugarColumn(Length = 200, IsNullable = true)] public string ClassName { get; set; } /// /// 任务描述 /// [SugarColumn(Length = 1000, IsNullable = true)] public string Remark { get; set; } /// /// 执行次数 /// public int RunTimes { get; set; } /// /// 开始时间 /// public DateTime? BeginTime { get; set; } /// /// 结束时间 /// public DateTime? EndTime { get; set; } /// /// 触发器类型(0、simple 1、cron) /// public int TriggerType { get; set; } /// /// 执行间隔时间, 秒为单位 /// public int IntervalSecond { get; set; } /// /// 循环执行次数 /// public int CycleRunTimes { get; set; } /// /// 已循环次数 /// public int CycleHasRunTimes { get; set; } /// /// 是否启动 /// public bool IsStart { get; set; } = false; /// /// 执行传参 /// public string JobParams { get; set; } [SugarColumn(IsNullable = true)] public bool? IsDeleted { get; set; } /// /// 创建时间 /// [SugarColumn(IsNullable = true)] public DateTime CreateTime { get; set; } = DateTime.Now; /// /// 任务内存中的状态 /// [SugarColumn(IsIgnore = true)] public List Triggers { get; set; } } }