- 添加学生提交管理服务 (StudentSubmissionService, StudentSubmissionDetailService) - 新增学生提交相关控制器 (StudentSubmissionController, StudentSubmissionDetailController) - 添加学生提交数据传输对象 (StudentSubmissionDetailDto, StudentSubmissionSummaryDto) - 新增学生提交相关页面组件 (StudentExamView, ExamDetailView, StudentCard等) - 添加学生提交信息卡片组件 (SubmissionInfoCard, TeacherSubmissionInfoCard) - 更新数据库迁移文件以支持提交系统
This commit is contained in:
@@ -13,8 +13,9 @@ namespace Entities.DTO
|
||||
public string? DisplayName { get; set; }
|
||||
|
||||
public UInt32 ErrorQuestionNum { get; set; }
|
||||
public Dictionary<QuestionType, UInt32> ErrorQuestionTypes { get; set; } = new Dictionary<QuestionType, UInt32>();
|
||||
public Dictionary<string, UInt32> ErrorQuestionTypes { get; set; } = new Dictionary<string, UInt32>();
|
||||
public Dictionary<SubjectAreaEnum, UInt32> SubjectAreaErrorQuestionDis { get; set; } = new Dictionary<SubjectAreaEnum, UInt32>();
|
||||
public Dictionary<byte, UInt32> LessonErrorDis { get; set; } = new Dictionary<byte, UInt32>();
|
||||
public float Score { get; set; }
|
||||
}
|
||||
}
|
||||
|
41
Entities/DTO/StudentSubmissionDetailDto.cs
Normal file
41
Entities/DTO/StudentSubmissionDetailDto.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
using Entities.Contracts;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Entities.DTO
|
||||
{
|
||||
public class StudentSubmissionDetailDto
|
||||
{
|
||||
// 基本信息
|
||||
public Guid Id { get; set; }
|
||||
public Guid AssignmentId { get; set; }
|
||||
public Guid StudentId { get; set; }
|
||||
public DateTime SubmissionTime { get; set; }
|
||||
public float OverallGrade { get; set; }
|
||||
public string OverallFeedback { get; set; } = string.Empty;
|
||||
public SubmissionStatus Status { get; set; }
|
||||
|
||||
// Assignment信息
|
||||
public AssignmentDto Assignment { get; set; } = new AssignmentDto();
|
||||
|
||||
// 错误分析
|
||||
public Dictionary<string, int> ErrorTypeDistribution { get; set; } = new Dictionary<string, int>();
|
||||
public Dictionary<string, float> ErrorTypeScoreDistribution { get; set; } = new Dictionary<string, float>();
|
||||
|
||||
// 成绩统计
|
||||
public int TotalRank { get; set; }
|
||||
public List<float> AllScores { get; set; } = new List<float>();
|
||||
public float AverageScore { get; set; }
|
||||
public float ClassAverageScore { get; set; }
|
||||
|
||||
// 课文分布
|
||||
public Dictionary<string, int> LessonErrorDistribution { get; set; } = new Dictionary<string, int>();
|
||||
public Dictionary<string, int> KeyPointErrorDistribution { get; set; } = new Dictionary<string, int>();
|
||||
|
||||
// 基础统计
|
||||
public int TotalQuestions { get; set; }
|
||||
public int CorrectCount { get; set; }
|
||||
public int ErrorCount { get; set; }
|
||||
public float AccuracyRate { get; set; }
|
||||
}
|
||||
}
|
22
Entities/DTO/StudentSubmissionSummaryDto.cs
Normal file
22
Entities/DTO/StudentSubmissionSummaryDto.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
|
||||
namespace Entities.DTO
|
||||
{
|
||||
public class StudentSubmissionSummaryDto
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public string AssignmentName { get; set; }
|
||||
public int ErrorCount { get; set; }
|
||||
public DateTime CreatedDate { get; set; }
|
||||
public float Score { get; set; }
|
||||
public int TotalQuestions { get; set; }
|
||||
public string StudentName { get; set; }
|
||||
public string Status { get; set; }
|
||||
}
|
||||
|
||||
public class StudentSubmissionSummaryResponseDto
|
||||
{
|
||||
public List<StudentSubmissionSummaryDto> Submissions { get; set; }
|
||||
public int TotalCount { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user