调课、停课、补课申请

This commit is contained in:
2026-07-25 15:36:14 +08:00 Unverified
parent 9685435da9
commit 13b61f191a
11 changed files with 1162 additions and 1 deletions
@@ -0,0 +1,50 @@
using Jiaowu.Api.Domain.Common;
namespace Jiaowu.Api.Domain.Academic;
public sealed class CourseAdjustment : EntityBase
{
public Guid TeachingTaskId { get; set; }
public TeachingTask? TeachingTask { get; set; }
public CourseAdjustmentType Type { get; set; }
public CourseAdjustmentStatus Status { get; set; } = CourseAdjustmentStatus.Draft;
public Guid ApplicantUserId { get; set; }
// For Reschedule / Makeup
public DateOnly? TargetDate { get; set; }
public int? DayOfWeek { get; set; }
public int? StartPeriod { get; set; }
public int? PeriodCount { get; set; }
public Guid? ClassroomId { get; set; }
public Classroom? Classroom { get; set; }
// For Substitute
public Guid? SubstituteTeacherId { get; set; }
public Teacher? SubstituteTeacher { get; set; }
// For Cancel
public int? CancelWeek { get; set; }
public DateOnly? CancelDate { get; set; }
public string Reason { get; set; } = "";
public string? ReviewComment { get; set; }
public DateTime? SubmittedAt { get; set; }
public DateTime? ReviewedAt { get; set; }
public Guid? ReviewedByUserId { get; set; }
}
public enum CourseAdjustmentType
{
Reschedule = 1,
Cancel = 2,
Makeup = 3,
Substitute = 4
}
public enum CourseAdjustmentStatus
{
Draft = 1,
Submitted = 2,
Approved = 3,
Rejected = 4
}