namespace SimApi.Configurations; public class SimApiJobOptions { /// /// WebUi地址,设置为null表示不启用 /// 默认 /jobs /// public string? DashboardUrl { get; set; } = "/jobs"; /// /// webui 用户 /// 默认 admin /// public string DashboardAuthUser { get; set; } = "admin"; /// /// webui 密码 /// 默认 Admin@123! /// public string DashboardAuthPass { get; set; } = "Admin@123!"; /// /// 设置为null 使用默认redis配置 /// public string? RedisConfiguration { get; set; } /// /// 设置为null 使用默认redis配置 /// public int? Database { get; set; } = null; public SimApiJobServerConfig[] Servers { get; set; } = [new()]; } public class SimApiJobServerConfig() { public string[] Queues { get; set; } = ["default"]; public int WorkerNum { get; set; } = 5; }