学业预警自动化
This commit is contained in:
@@ -13,6 +13,12 @@ public sealed class WarningRule : EntityBase
|
||||
public Guid AcademicTermId { get; set; }
|
||||
public AcademicTerm? AcademicTerm { get; set; }
|
||||
public string? Description { get; set; }
|
||||
// Auto-check schedule (per-type, independent)
|
||||
public bool AutoCheckEnabled { get; set; }
|
||||
public int? CheckDayOfWeek { get; set; } // null = daily
|
||||
public int CheckHour { get; set; } = 8;
|
||||
public int CheckMinute { get; set; }
|
||||
public DateTime? LastCheckAt { get; set; }
|
||||
}
|
||||
|
||||
public sealed class WarningRecord : EntityBase
|
||||
@@ -36,17 +42,6 @@ public enum WarningType
|
||||
GraduationDelay = 4
|
||||
}
|
||||
|
||||
public sealed class WarningSchedule : EntityBase
|
||||
{
|
||||
public Guid AcademicTermId { get; set; }
|
||||
public AcademicTerm? AcademicTerm { get; set; }
|
||||
public bool IsEnabled { get; set; }
|
||||
public int DayOfWeek { get; set; } = 1;
|
||||
public int Hour { get; set; } = 8;
|
||||
public int Minute { get; set; }
|
||||
public DateTime? LastRunAt { get; set; }
|
||||
}
|
||||
|
||||
public enum WarningStatus
|
||||
{
|
||||
Active = 1,
|
||||
|
||||
Reference in New Issue
Block a user