学业预警自动化

This commit is contained in:
2026-07-25 17:28:53 +08:00 Unverified
parent d23b5156b4
commit 3d4d9953e8
7 changed files with 120 additions and 146 deletions
@@ -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,