chore: 构建稳定版本

This commit is contained in:
陈淳
2023-12-11 09:55:12 +08:00
parent 098d4bc85f
commit 769a6a9c63
756 changed files with 10431 additions and 19867 deletions

View File

@@ -0,0 +1,27 @@
using Yi.Framework.Rbac.Domain.Shared.Enums;
namespace Yi.Framework.Rbac.Application.Contracts.Dtos.Task
{
public class TaskCreateInput
{
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 bool Concurrent { get; set; }
//public Dictionary<string, object>? Properties { get; set; }
public string? Description { get; set; }
}
}

View File

@@ -0,0 +1,10 @@
using Yi.Framework.Ddd.Application.Contracts;
namespace Yi.Framework.Rbac.Application.Contracts.Dtos.Task
{
public class TaskGetListInput : PagedAllResultRequestDto
{
public string JobId { get; set; }
public string GroupName { get; set; }
}
}

View File

@@ -0,0 +1,87 @@
namespace Yi.Framework.Rbac.Application.Contracts.Dtos.Task
{
public class TaskGetListOutput
{
/// <summary>
/// 作业 Id
/// </summary>
public string JobId { get; internal set; }
/// <summary>
/// 作业组名称
/// </summary>
public string GroupName { get; internal set; }
/// <summary>
/// 作业处理程序类型
/// </summary>
/// <remarks>存储的是类型的 FullName</remarks>
public string JobType { get; internal set; }
/// <summary>
/// 作业处理程序类型所在程序集
/// </summary>
/// <remarks>存储的是程序集 Name</remarks>
public string AssemblyName { get; internal set; }
/// <summary>
/// 描述信息
/// </summary>
public string Description { get; internal set; }
/// <summary>
/// 是否采用并行执行
/// </summary>
/// <remarks>如果设置为 false那么使用串行执行</remarks>
public bool Concurrent { get; internal set; } = true;
/// <summary>
/// 是否扫描 IJob 实现类 [Trigger] 特性触发器
/// </summary>
public bool IncludeAnnotations { get; internal set; } = false;
/// <summary>
/// 作业信息额外数据
/// </summary>
public string Properties { get; internal set; } = "{}";
/// <summary>
/// 作业更新时间
/// </summary>
public DateTime? UpdatedTime { get; internal set; }
/// <summary>
/// 标记其他作业正在执行
/// </summary>
/// <remarks>当 <see cref="Concurrent"/> 为 false 时有效,也就是串行执行</remarks>
internal bool Blocked { get; set; } = false;
/// <summary>
/// 作业处理程序运行时类型
/// </summary>
internal string RuntimeJobType { get; set; }
/// <summary>
/// 作业信息额外数据运行时实例
/// </summary>
internal string RuntimeProperties { get; set; }
/// <summary>
/// 触发器参数
/// </summary>
public string TriggerArgs { get; set; }
//状态
public string Status { get; set; }
}
}

View File

@@ -0,0 +1,87 @@
namespace Yi.Framework.Rbac.Application.Contracts.Dtos.Task
{
public class TaskGetOutput
{
/// <summary>
/// 作业 Id
/// </summary>
public string JobId { get; internal set; }
/// <summary>
/// 作业组名称
/// </summary>
public string GroupName { get; internal set; }
/// <summary>
/// 作业处理程序类型
/// </summary>
/// <remarks>存储的是类型的 FullName</remarks>
public string JobType { get; internal set; }
/// <summary>
/// 作业处理程序类型所在程序集
/// </summary>
/// <remarks>存储的是程序集 Name</remarks>
public string AssemblyName { get; internal set; }
/// <summary>
/// 描述信息
/// </summary>
public string Description { get; internal set; }
/// <summary>
/// 是否采用并行执行
/// </summary>
/// <remarks>如果设置为 false那么使用串行执行</remarks>
public bool Concurrent { get; internal set; } = true;
/// <summary>
/// 是否扫描 IJob 实现类 [Trigger] 特性触发器
/// </summary>
public bool IncludeAnnotations { get; internal set; } = false;
/// <summary>
/// 作业信息额外数据
/// </summary>
public string Properties { get; internal set; } = "{}";
/// <summary>
/// 作业更新时间
/// </summary>
public DateTime? UpdatedTime { get; internal set; }
/// <summary>
/// 标记其他作业正在执行
/// </summary>
/// <remarks>当 <see cref="Concurrent"/> 为 false 时有效,也就是串行执行</remarks>
internal bool Blocked { get; set; } = false;
/// <summary>
/// 作业处理程序运行时类型
/// </summary>
internal string RuntimeJobType { get; set; }
/// <summary>
/// 作业信息额外数据运行时实例
/// </summary>
internal string RuntimeProperties { get; set; }
public string TriggerArgs { get; set; }
public DateTime? NextRunTime { get; set; }
public DateTime? LastRunTime { get; set; }
public long NumberOfRuns { get; set; }
}
}

View File

@@ -0,0 +1,25 @@
using Yi.Framework.Rbac.Domain.Shared.Enums;
namespace Yi.Framework.Rbac.Application.Contracts.Dtos.Task
{
public class TaskUpdateInput
{
public string AssemblyName { get; set; }
public string JobType { get; set; }
public string? GroupName { get; set; }
public JobTypeEnum Type { get; set; }
public string? Cron { get; set; }
public int Millisecond { get; set; }
public bool Concurrent { get; set; }
// public Dictionary<string, object>? Properties { get; set; }
public string? Description { get; set; }
}
}