This commit is contained in:
SpecialX
2025-06-27 19:03:10 +08:00
parent 14fbe6397a
commit a21ca80782
57 changed files with 3872 additions and 611 deletions

View File

@@ -76,4 +76,15 @@ namespace Entities.Contracts
Option
}
public enum SubmissionStatus
{
Pending, // 待提交/未开始
Submitted, // 已提交
Graded, // 已批改
Resubmission, // 待重新提交 (如果允许)
Late, // 迟交
Draft, // 草稿
}
}

View File

@@ -31,6 +31,9 @@ namespace Entities.Contracts
[Column("question_number")]
public byte Index { get; set; }
[Column("sequence")]
public string Sequence { get; set; } = string.Empty;
[Column("parent_question_group_id")]
public Guid? ParentAssignmentQuestionId { get; set; }

View File

@@ -37,7 +37,7 @@ namespace Entities.Contracts
public float? OverallGrade { get; set; }
[Column("overall_feedback")]
public string OverallFeedback { get; set; }
public string? OverallFeedback { get; set; }
[Column("graded_by")]
[ForeignKey("Grader")]
@@ -66,13 +66,4 @@ namespace Entities.Contracts
}
}
public enum SubmissionStatus
{
Pending, // 待提交/未开始
Submitted, // 已提交
Graded, // 已批改
Resubmission, // 待重新提交 (如果允许)
Late, // 迟交
Draft, // 草稿
}
}

View File

@@ -31,16 +31,16 @@ namespace Entities.Contracts
public Guid AssignmentQuestionId { get; set; }
[Column("student_answer")]
public string StudentAnswer { get; set; }
public string? StudentAnswer { get; set; }
[Column("is_correct")]
public bool? IsCorrect { get; set; }
[Column("points_awarded")]
public float? PointsAwarded { get; set; }
public float? PointsAwarded { get; set; } // score
[Column("teacher_feedback")]
public string TeacherFeedback { get; set; }
public string? TeacherFeedback { get; set; }
[Column("created_at")]
public DateTime CreatedAt { get; set; }
@@ -54,8 +54,10 @@ namespace Entities.Contracts
[ForeignKey(nameof(StudentId))]
public User Student { get; set; }
[ForeignKey(nameof(SubmissionId))]
public Submission Submission { get; set; }
[ForeignKey(nameof(AssignmentQuestionId))]
public AssignmentQuestion AssignmentQuestion { get; set; }
public SubmissionDetail()