feat(api): ApplicationInWorkValidator добававлена валидация планировщика, ApplicationInWorkController добавлена обьязательная настройка планировщика

This commit is contained in:
Mikhail Kuznetsov
2024-03-29 11:36:39 +10:00
parent 2042db8d4b
commit fccc352fbf
4 changed files with 88 additions and 30 deletions

View File

@@ -28,16 +28,19 @@
}
public class ScheduleRequest
{
public DateTimeOffset NextRun { get; set; }
//public DateTimeOffset? LastRun { get; set; }
public List<EsppSchValueRequest> EsppSchValues { get; set; } = new List<EsppSchValueRequest>();
}
//public string Timezone { get; set; } = string.Empty;
public required int TypeScheduleId { get; set; }
public class EsppSchValueRequest
{
public Guid TypeValueId { get; set; }
public List<Guid> Values { get; set; } = new List<Guid>();
public Guid TypeConfigId { get; set; }
}
}