选课
This commit is contained in:
@@ -36,6 +36,7 @@ public sealed class CourseEnrollment : EntityBase
|
||||
public Guid StudentId { get; set; }
|
||||
public Student? Student { get; set; }
|
||||
public CourseEnrollmentStatus Status { get; set; } = CourseEnrollmentStatus.Enrolled;
|
||||
public EnrollmentType EnrollmentType { get; set; } = EnrollmentType.Normal;
|
||||
public DateTime EnrolledAt { get; set; } = DateTime.UtcNow;
|
||||
public DateTime? WithdrawnAt { get; set; }
|
||||
}
|
||||
@@ -52,3 +53,9 @@ public enum CourseEnrollmentStatus
|
||||
Enrolled = 1,
|
||||
Withdrawn = 2
|
||||
}
|
||||
|
||||
public enum EnrollmentType
|
||||
{
|
||||
Normal = 1,
|
||||
Retake = 2
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user