refactor 封装任务,调整人员获取

This commit is contained in:
2024-03-29 10:43:13 +08:00
parent 1d2572e617
commit e2c8dcf8d5
30 changed files with 976 additions and 1003 deletions

View File

@@ -0,0 +1,18 @@
namespace Kurisu.Scheduled.Attributes;
[AttributeUsage(AttributeTargets.Class)]
public class RecurringJobAttribute : Attribute
{
public RecurringJobAttribute(string uniqueJobKey, string cron)
{
UniqueJobKey = uniqueJobKey;
Cron = cron;
}
public string Name { get; set; }
public string UniqueJobKey { get; }
public string Cron { get; }
public string Queue { get; set; } = "default";
}