From 97843ab5fd155ce50896403aa435473bfced3f2e Mon Sep 17 00:00:00 2001 From: SpecialX <47072643+wangxiner55@users.noreply.github.com> Date: Fri, 30 May 2025 12:48:43 +0800 Subject: [PATCH] update-examParseByText --- TechHelper.Client/Exam/Exam/ExamParse.cs | 627 ++++++++++++++++++ .../Exam/Exam/QuestionCard.razor | 43 ++ .../Exam/SubMajorQuestionGroupDisplay.razor | 43 ++ TechHelper.Client/Exam/ExamParse.cs | 429 ------------ 4 files changed, 713 insertions(+), 429 deletions(-) create mode 100644 TechHelper.Client/Exam/Exam/ExamParse.cs create mode 100644 TechHelper.Client/Exam/Exam/QuestionCard.razor create mode 100644 TechHelper.Client/Exam/Exam/SubMajorQuestionGroupDisplay.razor delete mode 100644 TechHelper.Client/Exam/ExamParse.cs diff --git a/TechHelper.Client/Exam/Exam/ExamParse.cs b/TechHelper.Client/Exam/Exam/ExamParse.cs new file mode 100644 index 0000000..1d4f155 --- /dev/null +++ b/TechHelper.Client/Exam/Exam/ExamParse.cs @@ -0,0 +1,627 @@ +using System.Text.RegularExpressions; + +namespace TechHelper.Client.Exam.Parse +{ + public class ExamPaper + { + public string Title { get; set; } = "未识别试卷标题"; + public string Descript { get; set; } = "未识别试卷描述"; + public string SubjectArea { get; set; } = "试卷类别"; + public List MajorQuestionGroups { get; set; } = new List(); + public List TopLevelQuestions { get; set; } = new List(); + } + + public class MajorQuestionGroup + { + public string Title { get; set; } = string.Empty; + public string Descript { get; set; } = string.Empty; + public float Score { get; set; } + public List SubMajorQuestionGroups { get; set; } = new List(); + public List Questions { get; set; } = new List(); + public int Priority { get; set; } + } + + public class Question + { + public string Number { get; set; } = string.Empty; + public string Text { get; set; } = string.Empty; + public float Score { get; set; } + public List