From f37262d72ed7a5f0dcb7a3bf7c368af3ef728981 Mon Sep 17 00:00:00 2001 From: SpecialX <47072643+wangxiner55@users.noreply.github.com> Date: Mon, 16 Jun 2025 10:48:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E8=A6=81=E9=87=8D=E6=96=B0=E6=95=B4?= =?UTF-8?q?=E7=90=86=E7=BB=93=E6=9E=84,=E8=BF=99=E6=98=AF=E8=BF=99?= =?UTF-8?q?=E9=98=B6=E6=AE=B5=E7=9A=84=E4=BF=9D=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TechHelper.Server/Repository/ExamRepository.cs | 12 ++++++++++++ TechHelper.Server/Services/ExamService2.cs | 8 ++++++++ 2 files changed, 20 insertions(+) diff --git a/TechHelper.Server/Repository/ExamRepository.cs b/TechHelper.Server/Repository/ExamRepository.cs index 489cdc8..191b525 100644 --- a/TechHelper.Server/Repository/ExamRepository.cs +++ b/TechHelper.Server/Repository/ExamRepository.cs @@ -1,4 +1,5 @@ using Entities.Contracts; +using Entities.DTO; using Microsoft.EntityFrameworkCore; using SharedDATA.Api; @@ -9,6 +10,8 @@ namespace TechHelper.Server.Repository private readonly IUnitOfWork _unitOfWork; private readonly IRepository _assignmentRepo; private readonly IRepository _assignmentGroupRepo; + private readonly IRepository _questionGroupRepo; + private readonly IRepository _questionRepo; public ExamRepository(IUnitOfWork unitOfWork) { @@ -80,5 +83,14 @@ namespace TechHelper.Server.Repository { await _assignmentRepo.InsertAsync(assignment); } + + + public async Task AddAsync(QuestionGroupDto qg) + { + if(qg.ValidQuestionGroup) + { + + } + } } } diff --git a/TechHelper.Server/Services/ExamService2.cs b/TechHelper.Server/Services/ExamService2.cs index ead8236..a679c9b 100644 --- a/TechHelper.Server/Services/ExamService2.cs +++ b/TechHelper.Server/Services/ExamService2.cs @@ -86,6 +86,14 @@ namespace TechHelper.Server.Services return _mapper.Map>(assignments); } + public async Task AddAsync(QuestionGroupDto qg) + { + if (qg.ValidQuestionGroup) + { + var mapQG = _mapper.Map(qg); + } + } + public Task GetAllAsync(QueryParameter query) { throw new NotImplementedException();