feat: 添加定时任务及演示模块的更新

This commit is contained in:
陈淳
2024-01-13 16:17:48 +08:00
parent cf4e5aae47
commit 36e9938011
10 changed files with 139 additions and 55 deletions

View File

@@ -14,13 +14,13 @@ namespace Yi.Framework.Rbac.Application.Contracts.Dtos.Task
public JobTypeEnum Type { get; set; }
public string Cron { get; set; }
public string? Cron { get; set; }
public int Millisecond { get; set; }
public int? Millisecond { get; set; }
public bool Concurrent { get; set; }
//public Dictionary<string, object>? Properties { get; set; }
// public Dictionary<string, object>? Properties { get; set; }
public string? Description { get; set; }
}

View File

@@ -4,7 +4,7 @@ namespace Yi.Framework.Rbac.Application.Contracts.Dtos.Task
{
public class TaskGetListInput : PagedAllResultRequestDto
{
public string JobId { get; set; }
public string GroupName { get; set; }
public string? JobId { get; set; }
public string? GroupName { get; set; }
}
}

View File

@@ -57,7 +57,7 @@
/// 作业更新时间
/// </summary>
public DateTime? UpdatedTime { get; internal set; }
public DateTime? LastRunTime { get; internal set; }
/// <summary>
/// 标记其他作业正在执行

View File

@@ -1,4 +1,6 @@
namespace Yi.Framework.Rbac.Application.Contracts.Dtos.Task
using Yi.Framework.Rbac.Domain.Shared.Enums;
namespace Yi.Framework.Rbac.Application.Contracts.Dtos.Task
{
public class TaskGetOutput
{
@@ -68,5 +70,15 @@
public DateTime? LastRunTime { get; set; }
public long NumberOfRuns { get; set; }
/// <summary>
/// 状态
/// </summary>
public string Status { get; set; }
/// <summary>
/// 触发器类型
/// </summary>
public JobTypeEnum Type { get; set; }
}
}

View File

@@ -7,18 +7,18 @@ namespace Yi.Framework.Rbac.Application.Contracts.Dtos.Task
public string AssemblyName { get; set; }
public string JobType { get; set; }
public string JobId { get; set; }
public string? GroupName { get; set; }
public JobTypeEnum Type { get; set; }
public string? Cron { get; set; }
public int Millisecond { get; set; }
public int? Millisecond { get; set; }
public bool Concurrent { get; set; }
// public Dictionary<string, object>? Properties { get; set; }
// public Dictionary<string, object>? Properties { get; set; }
public string? Description { get; set; }
}