成绩评论

This commit is contained in:
biss committed 2026-08-22 17:17:43 +08:00
1 parent 9ba83c3dc1
commit 124c4ba033
13 files changed
+9123 -2

No files matched your search

@@ -139,6 +139,39 @@ public sealed class CourseGradeStatisticsRefreshJob : EntityBase
public string? ErrorMessage { get; set; }
}
/// <summary>
/// Discussion messages for the grade-analytics centre. Anonymous messages still
/// retain their author internally, so the author can remove them and academic
/// administrators can moderate them without exposing the author's identity.
/// </summary>
public sealed class GradeAnalyticsComment : EntityBase
{
public Guid CourseId { get; set; }
public Guid? ParentCommentId { get; set; }
public Guid AuthorUserId { get; set; }
public bool IsAnonymous { get; set; }
public required string Content { get; set; }
}
public sealed class GradeAnalyticsCommentReaction : EntityBase
{
public Guid CommentId { get; set; }
public Guid UserId { get; set; }
public GradeAnalyticsCommentReactionType Type { get; set; }
}
public enum GradeAnalyticsCommentReactionType
{
Like = 1,
Insightful = 2,
Agree = 3,
Hooray = 4,
Heart = 5,
Rocket = 6,
Eyes = 7,
Laugh = 8
}
/// <summary>
/// Materialized all-term academic metrics for one student. Rankings are derived
/// from this compact table, never by scanning raw grade records on a request.