xf 4 өдөр өмнө
parent
commit
3810d0bf23
100 өөрчлөгдсөн 156 нэмэгдсэн , 172 устгасан
  1. 1 1
      src/Hotline.Api/Controllers/Exam/ExamManageController.cs
  2. 1 1
      src/Hotline.Api/Controllers/Exam/ExtractRuleController.cs
  3. 1 1
      src/Hotline.Api/Controllers/Exam/QuestionController.cs
  4. 1 1
      src/Hotline.Api/Controllers/Exam/TestPaperController.cs
  5. 1 1
      src/Hotline.Application/Exam/Interface/ExamManages/IExamManageService.cs
  6. 1 1
      src/Hotline.Application/Exam/Interface/ExamManages/IExamTagService.cs
  7. 1 1
      src/Hotline.Application/Exam/Interface/ExamManages/IExtractRuleService.cs
  8. 1 1
      src/Hotline.Application/Exam/Interface/ExamManages/IUnExamUserService.cs
  9. 1 1
      src/Hotline.Application/Exam/Interface/ExamManages/IUserExamResultService.cs
  10. 1 1
      src/Hotline.Application/Exam/Interface/ExamManages/IUserExamService.cs
  11. 1 1
      src/Hotline.Application/Exam/Interface/Practices/IPracticeService.cs
  12. 1 1
      src/Hotline.Application/Exam/Interface/Questions/IQuestionAnswerService.cs
  13. 1 1
      src/Hotline.Application/Exam/Interface/Questions/IQuestionKnowladgeService.cs
  14. 1 1
      src/Hotline.Application/Exam/Interface/Questions/IQuestionOptionsService.cs
  15. 1 1
      src/Hotline.Application/Exam/Interface/Questions/IQuestionService.cs
  16. 1 1
      src/Hotline.Application/Exam/Interface/Questions/IQuestionSourcewareService.cs
  17. 1 1
      src/Hotline.Application/Exam/Interface/Questions/IQuestionTagService.cs
  18. 1 1
      src/Hotline.Application/Exam/Interface/Sourcewares/ISourcewareCategoryService.cs
  19. 1 1
      src/Hotline.Application/Exam/Interface/Sourcewares/ISourcewareService.cs
  20. 1 1
      src/Hotline.Application/Exam/Interface/TestPapers/ITestPaperService.cs
  21. 1 1
      src/Hotline.Application/Exam/Interface/Train/ITrainPlanService.cs
  22. 1 1
      src/Hotline.Application/Exam/Interface/Train/ITrainRecordAnswerService.cs
  23. 1 1
      src/Hotline.Application/Exam/Interface/Train/ITrainRecordService.cs
  24. 1 1
      src/Hotline.Application/Exam/Interface/Train/ITrainTemplateService.cs
  25. 2 5
      src/Hotline.Application/Exam/Proxy/ExamManageProxy.cs
  26. 1 1
      src/Hotline.Application/Exam/Proxy/TestPaperProxy.cs
  27. 2 11
      src/Hotline.Application/Exam/Service/ExamManages/ExamManageService.cs
  28. 1 1
      src/Hotline.Application/Exam/Service/ExamManages/ExamTagService.cs
  29. 2 2
      src/Hotline.Application/Exam/Service/ExamManages/ExtractRuleService.cs
  30. 3 17
      src/Hotline.Application/Exam/Service/ExamManages/UserExamService.cs
  31. 2 2
      src/Hotline.Application/Exam/Service/Practices/PracticeService.cs
  32. 2 2
      src/Hotline.Application/Exam/Service/Questions/QuestionService.cs
  33. 1 1
      src/Hotline.Application/Exam/Service/Sourcewares/SourcewareCategoryService.cs
  34. 1 1
      src/Hotline.Application/Exam/Service/Sourcewares/SourcewareService.cs
  35. 2 2
      src/Hotline.Application/Exam/Service/TestPapers/TestPaperService.cs
  36. 2 2
      src/Hotline.Application/Exam/Service/Trains/TrainPlanService.cs
  37. 2 2
      src/Hotline.Application/Exam/Service/Trains/TrainRecordService.cs
  38. 3 7
      src/Hotline.Application/Exam/Service/Trains/TrainTemplateService.cs
  39. 10 10
      src/Hotline.Repository.SqlSugar/Exam/Extensions/ApiServiceExtension.cs
  40. 3 3
      src/Hotline.Repository.SqlSugar/Exam/Interface/IApiService.cs
  41. 6 0
      src/Hotline.Repository.SqlSugar/Exam/Interface/IDomainService.cs
  42. 6 6
      src/Hotline.Repository.SqlSugar/Exam/Interface/IExamRepository.cs
  43. 4 4
      src/Hotline.Repository.SqlSugar/Exam/Interface/IQueryService.cs
  44. 8 0
      src/Hotline.Repository.SqlSugar/Exam/Interface/StatusActionRequest.cs
  45. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/ExamManages/IExamAnswerRepository.cs
  46. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/ExamManages/IExamManageRepository.cs
  47. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/ExamManages/IExamQuestionAnswerRepository.cs
  48. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/ExamManages/IExamQuestionKnowladgeRepository.cs
  49. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/ExamManages/IExamQuestionOptionsRepository.cs
  50. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/ExamManages/IExamQuestionRepository.cs
  51. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/ExamManages/IExamQuestionScoreRepository.cs
  52. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/ExamManages/IExamQuestionSourcewareRepository.cs
  53. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/ExamManages/IExamTagRepository.cs
  54. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/ExamManages/IExtractRuleRepository.cs
  55. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/ExamManages/IRuleTagRepository.cs
  56. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/ExamManages/IUserExamItemOptionRepository.cs
  57. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/ExamManages/IUserExamItemRepository.cs
  58. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/ExamManages/IUserExamRepository.cs
  59. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/Practices/IPracticeAnswerRepository.cs
  60. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/Practices/IPracticeQuestionKnowladgeRepository.cs
  61. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/Practices/IPracticeQuestionOptionsRepository.cs
  62. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/Practices/IPracticeQuestionRepository.cs
  63. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/Practices/IPracticeQuestionSourcewareRepository.cs
  64. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/Practices/IPracticeRecordRepository.cs
  65. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/Practices/IPracticeRepository.cs
  66. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/Practices/IPracticeResultItemRepository.cs
  67. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/Practices/IPracticeResultRepository.cs
  68. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/Practices/IPracticeTagRepository.cs
  69. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/Questions/IQuestionAnswerRepository.cs
  70. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/Questions/IQuestionKnowladgeRepository.cs
  71. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/Questions/IQuestionOptionsRepository.cs
  72. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/Questions/IQuestionRepository.cs
  73. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/Questions/IQuestionSourcewareRepository.cs
  74. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/Questions/IQuestionTagRepository.cs
  75. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/Questions/ITagQuestionRepository.cs
  76. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/Sourcewares/ISourcewareCategoryRepository.cs
  77. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/Sourcewares/ISourcewareRepository.cs
  78. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/TestPapers/ITestPaperItemAnswerRepository.cs
  79. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/TestPapers/ITestPaperItemKnowladgeRepository.cs
  80. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/TestPapers/ITestPaperItemOptionsRepository.cs
  81. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/TestPapers/ITestPaperItemRepository.cs
  82. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/TestPapers/ITestPaperItemSourcewareRepository.cs
  83. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/TestPapers/ITestPaperRepository.cs
  84. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/TestPapers/ITestPaperRuleRepository.cs
  85. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/TestPapers/ITestPaperRuleTagRepository.cs
  86. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/Trains/ITrainKnowladgeRepository.cs
  87. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/Trains/ITrainPlanRepository.cs
  88. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/Trains/ITrainPlanTemplateRepository.cs
  89. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/Trains/ITrainPracticeKnowladgeRepository.cs
  90. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/Trains/ITrainPracticeOptionsRepository.cs
  91. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/Trains/ITrainPracticeRepository.cs
  92. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/Trains/ITrainPracticeSourcewareRepository.cs
  93. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/Trains/ITrainRecordAnswerRepository.cs
  94. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/Trains/ITrainRecordItemRepository.cs
  95. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/Trains/ITrainRecordRepository.cs
  96. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/Trains/ITrainTemplateRepository.cs
  97. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Interfaces/Trains/ITrainUserRepository.cs
  98. 1 1
      src/Hotline.Repository.SqlSugar/Exam/Repositories/ExamRepository.cs
  99. 13 13
      src/Hotline.Repository.SqlSugar/Exam/Service/ApiService.cs
  100. 2 2
      src/Hotline.Repository.SqlSugar/Exam/Validate/BaseValidator.cs

+ 1 - 1
src/Hotline.Api/Controllers/Exam/ExamManageController.cs

@@ -3,7 +3,7 @@ using Exam.Share;
 using Exam.Share.ViewResponses.Exam;
 using Hotline.Application.Exam.Constants.ApiRoutes;
 using Hotline.Application.Exam.Interface.ExamManages;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 using Hotline.Share.Requests.Exam;
 using Microsoft.AspNetCore.Authorization;
 using Microsoft.AspNetCore.Mvc;

+ 1 - 1
src/Hotline.Api/Controllers/Exam/ExtractRuleController.cs

@@ -3,7 +3,7 @@ using Exam.Infrastructure.Data.Entity;
 using Exam.Share.ViewResponses.Exam;
 using Hotline.Application.Exam.Constants.ApiRoutes;
 using Hotline.Application.Exam.Interface.ExamManages;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 using Hotline.Share.Dtos.TestPapers;
 using Hotline.Share.Requests.Exam;
 using Hotline.Share.ViewResponses.Exam;

+ 1 - 1
src/Hotline.Api/Controllers/Exam/QuestionController.cs

@@ -2,7 +2,7 @@
 using Exam.Share.ViewResponses.Question;
 using Hotline.Application.Exam.Constants.ApiRoutes;
 using Hotline.Application.Exam.Interface.Questions;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 using Hotline.Share.Dtos.Questions;
 using Hotline.Share.Requests.Question;
 using MapsterMapper;

+ 1 - 1
src/Hotline.Api/Controllers/Exam/TestPaperController.cs

@@ -5,7 +5,7 @@ using Exam.Share.ViewResponses.TestPaper;
 using Hotline.Application.Exam.Constants.ApiRoutes;
 using Hotline.Application.Exam.Interface.TestPapers;
 using Hotline.Application.Exam.Service.ExamManages;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 using Hotline.Share.Dtos.Questions;
 using Hotline.Share.Dtos.TestPapers;
 using Hotline.Share.Requests.Exam;

+ 1 - 1
src/Hotline.Application/Exam/Interface/ExamManages/IExamManageService.cs

@@ -1,7 +1,7 @@
 using Exam.Share;
 using Exam.Share.ViewResponses.Exam;
 using Hotline.Exams.ExamManages;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 using Hotline.Share.Requests.Exam;
 using Microsoft.AspNetCore.Http;
 

+ 1 - 1
src/Hotline.Application/Exam/Interface/ExamManages/IExamTagService.cs

@@ -1,5 +1,5 @@
 using Hotline.Exams.ExamManages;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 using Hotline.Share.Dtos.ExamManages;
 using Hotline.Share.Requests.Exam;
 using Hotline.Share.ViewResponses.Exam;

+ 1 - 1
src/Hotline.Application/Exam/Interface/ExamManages/IExtractRuleService.cs

@@ -1,6 +1,6 @@
 using Exam.Share.ViewResponses.Exam;
 using Hotline.Exams.ExamManages;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 using Hotline.Share.Dtos.TestPapers;
 using Hotline.Share.Requests.Exam;
 using Hotline.Share.ViewResponses.Exam;

+ 1 - 1
src/Hotline.Application/Exam/Interface/ExamManages/IUnExamUserService.cs

@@ -1,6 +1,6 @@
 using Exam.Share;
 using Exam.Share.ViewResponses.Exam;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 using Hotline.Share.Requests.Exam;
 
 namespace Hotline.Application.Exam.Interface.ExamManages

+ 1 - 1
src/Hotline.Application/Exam/Interface/ExamManages/IUserExamResultService.cs

@@ -1,6 +1,6 @@
 using Exam.Share;
 using Exam.Share.ViewResponses.Exam;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 using Hotline.Share.Requests.Exam;
 
 namespace Hotline.Application.Exam.Interface.ExamManages

+ 1 - 1
src/Hotline.Application/Exam/Interface/ExamManages/IUserExamService.cs

@@ -3,7 +3,7 @@ using Exam.Share;
 using Exam.Share.Dtos.ExamManage;
 using Exam.Share.ViewResponses.Exam;
 using Hotline.Exams.ExamManages;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 using Hotline.Share.Dtos.ExamManages;
 using Hotline.Share.Requests.Exam;
 using Hotline.Share.ViewResponses.Exam;

+ 1 - 1
src/Hotline.Application/Exam/Interface/Practices/IPracticeService.cs

@@ -1,7 +1,7 @@
 using Exam.Share;
 using Exam.Share.ViewResponses.Practices;
 using Hotline.Exams.Practices;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 using Hotline.Share.Dtos.Practices;
 using Hotline.Share.Requests.Exam;
 using Hotline.Share.Requests.TestPaper;

+ 1 - 1
src/Hotline.Application/Exam/Interface/Questions/IQuestionAnswerService.cs

@@ -1,7 +1,7 @@
 using System.ComponentModel;
 using Exam.Share;
 using Hotline.Exams.Questions;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 using Hotline.Share.Dtos.Questions;
 using Hotline.Share.Requests.Question;
 

+ 1 - 1
src/Hotline.Application/Exam/Interface/Questions/IQuestionKnowladgeService.cs

@@ -1,7 +1,7 @@
 using System.ComponentModel;
 using Exam.Share;
 using Hotline.Exams.TestPapers;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 using Hotline.Share.Dtos.Questions;
 using Hotline.Share.Requests.Question;
 

+ 1 - 1
src/Hotline.Application/Exam/Interface/Questions/IQuestionOptionsService.cs

@@ -1,7 +1,7 @@
 using System.ComponentModel;
 using Exam.Share;
 using Hotline.Exams.Questions;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 using Hotline.Share.Dtos.Questions;
 using Hotline.Share.Requests.Question;
 

+ 1 - 1
src/Hotline.Application/Exam/Interface/Questions/IQuestionService.cs

@@ -1,6 +1,6 @@
 using Exam.Share.ViewResponses.Question;
 using Hotline.Exams.Questions;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 using Hotline.Share.Dtos.Questions;
 using Hotline.Share.Requests.Question;
 using Microsoft.AspNetCore.Http;

+ 1 - 1
src/Hotline.Application/Exam/Interface/Questions/IQuestionSourcewareService.cs

@@ -1,7 +1,7 @@
 using System.ComponentModel;
 using Exam.Share;
 using Hotline.Exams.Practices;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 using Hotline.Share.Dtos.Questions;
 using Hotline.Share.Requests.Question;
 

+ 1 - 1
src/Hotline.Application/Exam/Interface/Questions/IQuestionTagService.cs

@@ -1,7 +1,7 @@
 using System.ComponentModel;
 using Exam.Share;
 using Hotline.Exams.Questions;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 using Hotline.Share.Dtos.Questions;
 using Hotline.Share.Requests.Question;
 

+ 1 - 1
src/Hotline.Application/Exam/Interface/Sourcewares/ISourcewareCategoryService.cs

@@ -1,7 +1,7 @@
 using System.ComponentModel;
 using Exam.Share.ViewResponses.Sourceware;
 using Hotline.Exams.Sourcewares;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 using Hotline.Share.Dtos.Sourcewares;
 using Hotline.Share.Requests.Sourceware;
 

+ 1 - 1
src/Hotline.Application/Exam/Interface/Sourcewares/ISourcewareService.cs

@@ -1,6 +1,6 @@
 using System.ComponentModel;
 using Hotline.Exams.Sourcewares;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 using Hotline.Share.Dtos.Sourcewares;
 using Hotline.Share.Requests.Sourceware;
 using Hotline.Share.ViewResponses.Sourcewares;

+ 1 - 1
src/Hotline.Application/Exam/Interface/TestPapers/ITestPaperService.cs

@@ -1,6 +1,6 @@
 using Exam.Share.ViewResponses.TestPaper;
 using Hotline.Exams.TestPapers;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 using Hotline.Share.Dtos.TestPapers;
 using Hotline.Share.Requests.Exam;
 using Hotline.Share.Requests.TestPaper;

+ 1 - 1
src/Hotline.Application/Exam/Interface/Train/ITrainPlanService.cs

@@ -1,7 +1,7 @@
 using Exam.Share;
 using Exam.Share.ViewResponses.Train;
 using Hotline.Exams.Trains;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 using Hotline.Share.Requests.Train;
 
 namespace Hotline.Application.Exam.Interface.Train

+ 1 - 1
src/Hotline.Application/Exam/Interface/Train/ITrainRecordAnswerService.cs

@@ -1,5 +1,5 @@
 using Hotline.Exams.Trains;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 using Hotline.Share.Dtos.Trains;
 
 namespace Hotline.Application.Exam.Interface.Train

+ 1 - 1
src/Hotline.Application/Exam/Interface/Train/ITrainRecordService.cs

@@ -1,7 +1,7 @@
 using Exam.Share.Dtos.Trains;
 using Exam.Share.ViewResponses.Train;
 using Hotline.Exams.Trains;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 using Hotline.Share.Dtos.Trains;
 using Hotline.Share.Requests.Train;
 using Hotline.Share.ViewResponses.Trains;

+ 1 - 1
src/Hotline.Application/Exam/Interface/Train/ITrainTemplateService.cs

@@ -1,6 +1,6 @@
 using Exam.Share.ViewResponses.Train;
 using Hotline.Exams.Trains;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 using Hotline.Share.Dtos.Trains;
 using Hotline.Share.Requests.Train;
 

+ 2 - 5
src/Hotline.Application/Exam/Proxy/ExamManageProxy.cs

@@ -1,13 +1,10 @@
-using Hotline.Exams.ExamManages;
-using Hotline.Exams.Questions;
-using Hotline.Repository.SqlSugar;
+using Hotline.Repository.SqlSugar;
 using Hotline.Repository.SqlSugar.DataPermissions;
+using Hotline.Repository.SqlSugar.Exam.Extensions;
 using Hotline.Repository.SqlSugar.Exam.Interfaces.ExamManages;
 using Hotline.Repository.SqlSugar.Exam.Interfaces.Exams;
 using Hotline.Repository.SqlSugar.Exam.Interfaces.Questions;
 using Hotline.Repository.SqlSugar.Exam.Repositories;
-using Hotline.Repository.SqlSugar.Extensions;
-using Hotline.Repository.SqlSugar.Interface;
 using MapsterMapper;
 using SqlSugar;
 using XF.Domain.Authentications;

+ 1 - 1
src/Hotline.Application/Exam/Proxy/TestPaperProxy.cs

@@ -3,7 +3,6 @@ using Hotline.Repository.SqlSugar;
 using Hotline.Repository.SqlSugar.DataPermissions;
 using Hotline.Repository.SqlSugar.Exam.Interfaces.Questions;
 using Hotline.Repository.SqlSugar.Exam.Interfaces.TestPapers;
-using Hotline.Repository.SqlSugar.Extensions;
 using MapsterMapper;
 using SqlSugar;
 using System.Threading;
@@ -11,6 +10,7 @@ using Hotline.Exams.Questions;
 using Hotline.Repository.SqlSugar.Exam.Repositories;
 using XF.Domain.Authentications;
 using XF.Domain.Repository;
+using Hotline.Repository.SqlSugar.Exam.Extensions;
 
 namespace Hotline.Application.Exam.Proxy
 {

+ 2 - 11
src/Hotline.Application/Exam/Service/ExamManages/ExamManageService.cs

@@ -1,38 +1,27 @@
 using Exam.Infrastructure.Data.Entity;
 using Exam.Infrastructure.Enums;
 using Exam.Infrastructure.Extensions;
-using Exam.Insfrastructure.Service.Service;
 using Exam.Share;
 using Exam.Share.ViewResponses.Exam;
 using Hotline.Application.Exam.Interface.ExamManages;
 using Hotline.Repository.SqlSugar;
 using Hotline.Repository.SqlSugar.DataPermissions;
 using Hotline.Repository.SqlSugar.Exam.Interfaces.ExamManages;
-using Hotline.Repository.SqlSugar.Interface;
-using Hotline.Share.Dtos.Questions;
 using Hotline.Share.Requests.Exam;
-using JiebaNet.Segmenter.Common;
 using MapsterMapper;
 using SqlSugar;
 using XF.Domain.Dependency;
 using XF.Domain.Entities;
-using Hotline.Repository.SqlSugar.Extensions;
 using Hotline.Application.Exam.QueryExtensions.ExamManages;
 using XF.Domain.Exceptions;
-using NetTaste;
-using Exam.Infrastructure.Validation.Validation;
 using Hotline.Application.Exam.Extensions;
 using XF.Domain.Authentications;
 using Hotline.Repository.SqlSugar.Exam.Core.Constants;
-using NPOI.SS.Formula.Functions;
 using Hotline.Exams.TestPapers;
 using Hotline.Application.Exam.Proxy;
 using Hotline.Repository.SqlSugar.Exam.Interfaces.TestPapers;
 using Hotline.Repository.SqlSugar.Exam.Interfaces.Questions;
-using Microsoft.AspNetCore.Http;
-using Hotline.Tools;
 using Hotline.Users;
-using System.Buffers;
 using Hotline.Application.Exam.Core.Extensions;
 using Hotline.Application.Exam.Core.Utilities;
 using Hotline.Exams.ExamManages;
@@ -41,6 +30,8 @@ using Hotline.Repository.SqlSugar.Exam.Interfaces.Exams;
 using Hotline.Repository.SqlSugar.Exam.Repositories;
 using ExamErrorMessage = Hotline.Exams.Validate.ExamErrorMessage;
 using ExamQuestion = Hotline.Exams.Questions.ExamQuestion;
+using Hotline.Repository.SqlSugar.Exam.Service;
+using Hotline.Repository.SqlSugar.Exam.Extensions;
 
 namespace Hotline.Application.Exam.Service.ExamManages
 {

+ 1 - 1
src/Hotline.Application/Exam/Service/ExamManages/ExamTagService.cs

@@ -1,7 +1,6 @@
 using Exam.Application.Interface.Exam;
 using Exam.Infrastructure.Data.Entity;
 using Exam.Infrastructure.Extensions;
-using Exam.Insfrastructure.Service.Service;
 using Exam.Share.ViewResponses.Sourceware;
 using Hotline.Application.Exam.Constants.Messages;
 using Hotline.Application.Exam.Extensions;
@@ -20,6 +19,7 @@ using Hotline.Application.Exam.Interface.ExamManages;
 using Hotline.Exams.ExamManages;
 using XF.Domain.Dependency;
 using XF.Domain.Exceptions;
+using Hotline.Repository.SqlSugar.Exam.Service;
 
 namespace Hotline.Application.Exam.Service.ExamManages
 {

+ 2 - 2
src/Hotline.Application/Exam/Service/ExamManages/ExtractRuleService.cs

@@ -3,7 +3,6 @@ using Exam.Application.Interface.Exam;
 using Exam.Infrastructure.Data.Entity;
 using Exam.Infrastructure.Enums;
 using Exam.Infrastructure.Extensions;
-using Exam.Insfrastructure.Service.Service;
 using Exam.Share.ViewResponses.Exam;
 using Hotline.Application.Exam.Core.Extensions;
 using Hotline.Application.Exam.Core.Utilities;
@@ -15,10 +14,11 @@ using Hotline.Exams.Questions;
 using Hotline.Repository.SqlSugar;
 using Hotline.Repository.SqlSugar.DataPermissions;
 using Hotline.Repository.SqlSugar.Exam.Core.Constants;
+using Hotline.Repository.SqlSugar.Exam.Extensions;
 using Hotline.Repository.SqlSugar.Exam.Interfaces.ExamManages;
 using Hotline.Repository.SqlSugar.Exam.Interfaces.Questions;
 using Hotline.Repository.SqlSugar.Exam.Repositories;
-using Hotline.Repository.SqlSugar.Extensions;
+using Hotline.Repository.SqlSugar.Exam.Service;
 using Hotline.Share.Dtos.TestPapers;
 using Hotline.Share.Requests.Exam;
 using Hotline.Share.Tools;

+ 3 - 17
src/Hotline.Application/Exam/Service/ExamManages/UserExamService.cs

@@ -1,13 +1,7 @@
-using DocumentFormat.OpenXml.Drawing;
-using DocumentFormat.OpenXml.Drawing.Charts;
-using DocumentFormat.OpenXml.Office2010.Excel;
-using Exam.Application.Interface.Exam;
+using Exam.Application.Interface.Exam;
 using Exam.Infrastructure.Data.Entity;
-using Exam.Infrastructure.Data.Interface;
 using Exam.Infrastructure.Enums;
 using Exam.Infrastructure.Extensions;
-using Exam.Infrastructure.Validation.Validation;
-using Exam.Insfrastructure.Service.Service;
 using Exam.Share;
 using Exam.Share.Dtos.ExamManage;
 using Exam.Share.ViewResponses.Exam;
@@ -17,15 +11,10 @@ using Hotline.Application.Exam.Interface.Strategy;
 using Hotline.Application.Exam.QueryExtensions.ExamManages;
 using Hotline.Application.Exam.Strategy;
 using Hotline.Exams.ExamManages;
-using Hotline.Exams.TestPapers;
 using Hotline.Repository.SqlSugar;
 using Hotline.Repository.SqlSugar.DataPermissions;
 using Hotline.Repository.SqlSugar.Exam.Interfaces.ExamManages;
-using Hotline.Repository.SqlSugar.Extensions;
-using Hotline.Repository.SqlSugar.Interface;
-using Hotline.Settings;
 using Hotline.Share.Dtos.ExamManages;
-using Hotline.Share.Dtos.Org;
 using Hotline.Share.Exams.Extensions;
 using Hotline.Share.Requests.Exam;
 using Hotline.Share.ViewResponses;
@@ -33,13 +22,8 @@ using Hotline.Share.ViewResponses.Exam;
 using Hotline.Users;
 using JiebaNet.Segmenter.Common;
 using MapsterMapper;
-using NPOI.SS.Formula.Functions;
-using SqlSugar;
-using System.Linq;
-using System.Threading.Tasks;
 using Hotline.Application.Exam.Core.Utilities;
 using Hotline.Application.Exam.Interface.ExamManages;
-using Hotline.Exams.Questions;
 using Hotline.Exams.Validate;
 using Hotline.Repository.SqlSugar.Exam.Repositories;
 using XF.Domain.Authentications;
@@ -47,6 +31,8 @@ using XF.Domain.Dependency;
 using XF.Domain.Exceptions;
 using XF.Domain.Repository;
 using ExamQuestion = Hotline.Exams.Questions.ExamQuestion;
+using Hotline.Repository.SqlSugar.Exam.Service;
+using Hotline.Repository.SqlSugar.Exam.Extensions;
 
 namespace Hotline.Application.Exam.Service.ExamManages
 {

+ 2 - 2
src/Hotline.Application/Exam/Service/Practices/PracticeService.cs

@@ -1,6 +1,5 @@
 using Exam.Infrastructure.Data.Entity;
 using Exam.Infrastructure.Data.Interface;
-using Exam.Insfrastructure.Service.Service;
 using Exam.Repository.Sqlsugar;
 using Exam.Share;
 using Exam.Share.ViewResponses.Exam;
@@ -18,7 +17,6 @@ using Hotline.Repository.SqlSugar.DataPermissions;
 using Hotline.Repository.SqlSugar.Exam.Core.Constants;
 using Hotline.Repository.SqlSugar.Exam.Interfaces.Practices;
 using Hotline.Repository.SqlSugar.Exam.Interfaces.Questions;
-using Hotline.Repository.SqlSugar.Extensions;
 using Hotline.Share.Dtos.Practices;
 using Hotline.Share.Dtos.Questions;
 using Hotline.Share.Dtos.TestPapers;
@@ -38,6 +36,8 @@ using Hotline.Exams.Questions;
 using Hotline.Repository.SqlSugar.Exam.Repositories;
 using XF.Domain.Authentications;
 using XF.Domain.Dependency;
+using Hotline.Repository.SqlSugar.Exam.Service;
+using Hotline.Repository.SqlSugar.Exam.Extensions;
 
 namespace Hotline.Application.Exam.Service.Practices
 {

+ 2 - 2
src/Hotline.Application/Exam/Service/Questions/QuestionService.cs

@@ -3,14 +3,12 @@ using Exam.Application;
 using Exam.Infrastructure.Data.Entity;
 using Exam.Infrastructure.Enums;
 using Exam.Infrastructure.Extensions;
-using Exam.Insfrastructure.Service.Service;
 using Exam.Share.ViewResponses.Question;
 using Hotline.Application.Exam.QueryExtensions.Questions;
 using Hotline.Exams.Sourcewares;
 using Hotline.Repository.SqlSugar;
 using Hotline.Repository.SqlSugar.DataPermissions;
 using Hotline.Repository.SqlSugar.Exam.Interfaces.Questions;
-using Hotline.Repository.SqlSugar.Extensions;
 using Hotline.Share.Dtos.Questions;
 using Hotline.Share.Requests.Question;
 using JiebaNet.Segmenter.Common;
@@ -43,6 +41,8 @@ using ExamQuestionAnswer = Hotline.Exams.Questions.ExamQuestionAnswer;
 using ExamQuestionKnowladge = Hotline.Exams.Questions.ExamQuestionKnowladge;
 using ExamQuestionOptions = Hotline.Exams.Questions.ExamQuestionOptions;
 using ExamQuestionSourceware = Hotline.Exams.Questions.ExamQuestionSourceware;
+using Hotline.Repository.SqlSugar.Exam.Service;
+using Hotline.Repository.SqlSugar.Exam.Extensions;
 
 namespace Hotline.Application.Exam.Service.Questions
 {

+ 1 - 1
src/Hotline.Application/Exam/Service/Sourcewares/SourcewareCategoryService.cs

@@ -1,7 +1,6 @@
 using System.ComponentModel;
 using Exam.Infrastructure.Data.Entity;
 using Exam.Infrastructure.Extensions;
-using Exam.Insfrastructure.Service.Service;
 using Exam.Share.ViewResponses.Sourceware;
 using Hotline.Application.Exam.Constants.Messages;
 using Hotline.Application.Exam.Extensions;
@@ -10,6 +9,7 @@ using Hotline.Application.Exam.QueryExtensions.Sourcewares;
 using Hotline.Exams.Sourcewares;
 using Hotline.Repository.SqlSugar;
 using Hotline.Repository.SqlSugar.Exam.Interfaces.Sourcewares;
+using Hotline.Repository.SqlSugar.Exam.Service;
 using Hotline.Share.Dtos.Sourcewares;
 using Hotline.Share.Requests.Sourceware;
 using MapsterMapper;

+ 1 - 1
src/Hotline.Application/Exam/Service/Sourcewares/SourcewareService.cs

@@ -3,7 +3,6 @@ using Exam.Infrastructure.Data.Entity;
 using Exam.Infrastructure.Data.Interface;
 using Exam.Infrastructure.Extensions;
 using Exam.Infrastructure.Validation.Constants;
-using Exam.Insfrastructure.Service.Service;
 using Hotline.Exams.Sourcewares;
 using Hotline.Repository.SqlSugar;
 using Hotline.Repository.SqlSugar.DataPermissions;
@@ -18,6 +17,7 @@ using System.ComponentModel;
 using Hotline.Application.Exam.Interface.Sourcewares;
 using Hotline.Application.Exam.QueryExtensions.Sourcewares;
 using XF.Domain.Dependency;
+using Hotline.Repository.SqlSugar.Exam.Service;
 
 namespace Hotline.Application.Exam.Service.Sourcewares
 {

+ 2 - 2
src/Hotline.Application/Exam/Service/TestPapers/TestPaperService.cs

@@ -3,7 +3,6 @@ using Exam.Infrastructure.Data.Entity;
 using Exam.Infrastructure.Data.Interface;
 using Exam.Infrastructure.Enums;
 using Exam.Infrastructure.Extensions;
-using Exam.Insfrastructure.Service.Service;
 using Exam.Repository.Sqlsugar;
 using Exam.Share.ViewResponses.TestPaper;
 using Hotline.Application.Exam.Core.Extensions;
@@ -17,7 +16,6 @@ using Hotline.Repository.SqlSugar.Exam.Core.Constants;
 using Hotline.Repository.SqlSugar.Exam.Interfaces.Questions;
 using Hotline.Repository.SqlSugar.Exam.Interfaces.TestPapers;
 using Hotline.Repository.SqlSugar.Exam.Repositories.TestPapers;
-using Hotline.Repository.SqlSugar.Extensions;
 using Hotline.Share.Dtos.Questions;
 using Hotline.Share.Dtos.TestPapers;
 using Hotline.Share.Dtos.Trains;
@@ -45,6 +43,8 @@ using ExamQuestionAnswer = Hotline.Exams.Questions.ExamQuestionAnswer;
 using ExamQuestionKnowladge = Hotline.Exams.Questions.ExamQuestionKnowladge;
 using ExamQuestionOptions = Hotline.Exams.Questions.ExamQuestionOptions;
 using ExamQuestionSourceware = Hotline.Exams.Questions.ExamQuestionSourceware;
+using Hotline.Repository.SqlSugar.Exam.Service;
+using Hotline.Repository.SqlSugar.Exam.Extensions;
 
 namespace Hotline.Application.Exam.Service.TestPapers
 {

+ 2 - 2
src/Hotline.Application/Exam/Service/Trains/TrainPlanService.cs

@@ -2,7 +2,6 @@
 using Exam.Infrastructure.Data.Entity;
 using Exam.Infrastructure.Enums;
 using Exam.Infrastructure.Extensions;
-using Exam.Insfrastructure.Service.Service;
 using Exam.Share;
 using Exam.Share.ViewResponses.Train;
 using Hotline.Application.Exam.Core.Constants;
@@ -15,9 +14,10 @@ using Hotline.Exams.Trains;
 using Hotline.Repository.SqlSugar;
 using Hotline.Repository.SqlSugar.DataPermissions;
 using Hotline.Repository.SqlSugar.Exam.Core.Constants;
+using Hotline.Repository.SqlSugar.Exam.Extensions;
 using Hotline.Repository.SqlSugar.Exam.Interfaces.Trains;
 using Hotline.Repository.SqlSugar.Exam.Repositories;
-using Hotline.Repository.SqlSugar.Extensions;
+using Hotline.Repository.SqlSugar.Exam.Service;
 using Hotline.Share.Dtos.Trains;
 using Hotline.Share.Requests.Train;
 using Hotline.Users;

+ 2 - 2
src/Hotline.Application/Exam/Service/Trains/TrainRecordService.cs

@@ -1,6 +1,5 @@
 using Exam.Infrastructure.Data.Entity;
 using Exam.Infrastructure.Validation.Validation;
-using Exam.Insfrastructure.Service.Service;
 using Exam.Share.Dtos.Trains;
 using Exam.Share.ViewResponses.Train;
 using Hotline.Application.Exam.Core.Extensions;
@@ -12,7 +11,6 @@ using Hotline.Exams.Trains;
 using Hotline.Repository.SqlSugar;
 using Hotline.Repository.SqlSugar.DataPermissions;
 using Hotline.Repository.SqlSugar.Exam.Interfaces.Trains;
-using Hotline.Repository.SqlSugar.Extensions;
 using Hotline.Share.Dtos.Questions;
 using Hotline.Share.Dtos.Trains;
 using Hotline.Share.Requests.Exam;
@@ -31,6 +29,8 @@ using static NPOI.HSSF.Util.HSSFColor;
 using DocumentFormat.OpenXml.Drawing.Charts;
 using Hotline.Repository.SqlSugar.Exam.Repositories;
 using JiebaNet.Segmenter.Common;
+using Hotline.Repository.SqlSugar.Exam.Service;
+using Hotline.Repository.SqlSugar.Exam.Extensions;
 
 namespace Hotline.Application.Exam.Service.Trains
 {

+ 3 - 7
src/Hotline.Application/Exam/Service/Trains/TrainTemplateService.cs

@@ -1,8 +1,6 @@
-using DocumentFormat.OpenXml.Office2010.Excel;
-using Exam.Infrastructure.Data.Entity;
+using Exam.Infrastructure.Data.Entity;
 using Exam.Infrastructure.Enums;
 using Exam.Infrastructure.Extensions;
-using Exam.Insfrastructure.Service.Service;
 using Exam.Share.ViewResponses.Train;
 using Hotline.Application.Exam.Core.Constants;
 using Hotline.Application.Exam.Core.Extensions;
@@ -11,17 +9,15 @@ using Hotline.Application.Exam.Extensions;
 using Hotline.Application.Exam.Interface.Train;
 using Hotline.Application.Exam.QueryExtensions.Trains;
 using Hotline.Exams.Questions;
-using Hotline.Exams.TestPapers;
 using Hotline.Exams.Trains;
 using Hotline.Repository.SqlSugar;
 using Hotline.Repository.SqlSugar.DataPermissions;
 using Hotline.Repository.SqlSugar.Exam.Core.Constants;
+using Hotline.Repository.SqlSugar.Exam.Extensions;
 using Hotline.Repository.SqlSugar.Exam.Interfaces.Questions;
 using Hotline.Repository.SqlSugar.Exam.Interfaces.Trains;
 using Hotline.Repository.SqlSugar.Exam.Repositories;
-using Hotline.Repository.SqlSugar.Extensions;
-using Hotline.Repository.SqlSugar.Interface;
-using Hotline.Share.Dtos.Questions;
+using Hotline.Repository.SqlSugar.Exam.Service;
 using Hotline.Share.Dtos.Trains;
 using Hotline.Share.Requests.Train;
 using JiebaNet.Segmenter.Common;

+ 10 - 10
src/Hotline.Repository.SqlSugar/Extensions/ApiServiceExtension.cs → src/Hotline.Repository.SqlSugar/Exam/Extensions/ApiServiceExtension.cs

@@ -6,11 +6,11 @@ using XF.Domain.Authentications;
 using XF.Domain.Entities;
 using XF.Domain.Repository;
 
-namespace Hotline.Repository.SqlSugar.Extensions
+namespace Hotline.Repository.SqlSugar.Exam.Extensions
 {
     public static class ApiServiceExtension
     {
-        public static void ToInsert<T>(this T entity,ISessionContext sessionContext=null) where T : class, IEntity<string>, new()
+        public static void ToInsert<T>(this T entity, ISessionContext sessionContext = null) where T : class, IEntity<string>, new()
         {
             if (entity.Id.IsNullOrEmpty())
             {
@@ -26,11 +26,11 @@ namespace Hotline.Repository.SqlSugar.Extensions
                 if (creationEntity != null)
                 {
                     creationEntity.CreationTime = DateTime.Now;
-                   
+
                 }
             }
 
-            if(entity is ExamBusinessEntity)
+            if (entity is ExamBusinessEntity)
             {
                 var creationEntity = entity as ExamBusinessEntity;
                 if (creationEntity != null)
@@ -52,13 +52,13 @@ namespace Hotline.Repository.SqlSugar.Extensions
                     current.CreatorName = sessionContext.UserName;
                     current.AreaId = sessionContext.AreaId;
                 }
-              }
+            }
 
         }
 
         public static void ToInsert<T>(this List<T> entities, ISessionContext sessionContext = null) where T : class, IEntity<string>, new()
         {
-            foreach(var entity in entities)
+            foreach (var entity in entities)
             {
                 entity.ToInsert(sessionContext);
             }
@@ -66,14 +66,14 @@ namespace Hotline.Repository.SqlSugar.Extensions
 
         public static void ToUpdate<T>(this T entity, ISessionContext sessionContext = null) where T : class, IEntity<string>, new()
         {
-            if(entity is FullStateEntity)
+            if (entity is FullStateEntity)
             {
                 var fullStateEntity = entity as FullStateEntity;
                 if (fullStateEntity != null)
                     fullStateEntity.LastModificationTime = DateTime.Now;
 
-                    entity = fullStateEntity as T ?? entity;
-                
+                entity = fullStateEntity as T ?? entity;
+
             }
 
             if (sessionContext != null)
@@ -92,7 +92,7 @@ namespace Hotline.Repository.SqlSugar.Extensions
             }
         }
 
-        public static void ToUpdate<T>(this List<T> entities, ISessionContext sessionContext = null) where T : class, IEntity<string>, new()       
+        public static void ToUpdate<T>(this List<T> entities, ISessionContext sessionContext = null) where T : class, IEntity<string>, new()
         {
             foreach (var entity in entities)
             {

+ 3 - 3
src/Hotline.Repository.SqlSugar/Interface/IApiService.cs → src/Hotline.Repository.SqlSugar/Exam/Interface/IApiService.cs

@@ -4,14 +4,14 @@ using FluentValidation;
 using XF.Domain.Dependency;
 using XF.Domain.Entities;
 
-namespace Hotline.Repository.SqlSugar.Interface
+namespace Hotline.Repository.SqlSugar.Exam.Interface
 {
-    public interface IApiService<TAdd,TUpdate,TEntity>: IDomainService 
+    public interface IApiService<TAdd, TUpdate, TEntity> : IDomainService
         where TAdd : IAddRequest
         where TUpdate : IActionRequest
         where TEntity : class, IEntity<string>, new()
     {
-        Task<string> AddAsync(TAdd actionRequest,CancellationToken cancellationToken);
+        Task<string> AddAsync(TAdd actionRequest, CancellationToken cancellationToken);
 
         Task AddAsync(List<TAdd> actionRequests, CancellationToken cancellationToken);
 

+ 6 - 0
src/Hotline.Repository.SqlSugar/Exam/Interface/IDomainService.cs

@@ -0,0 +1,6 @@
+namespace Hotline.Repository.SqlSugar.Exam.Interface
+{
+    public interface IDomainService
+    {
+    }
+}

+ 6 - 6
src/Hotline.Repository.SqlSugar/Interface/IExamRepository.cs → src/Hotline.Repository.SqlSugar/Exam/Interface/IExamRepository.cs

@@ -5,10 +5,10 @@ using SqlSugar;
 using XF.Domain.Entities;
 using XF.Domain.Repository;
 
-namespace Hotline.Repository.SqlSugar.Interface
+namespace Hotline.Repository.SqlSugar.Exam.Interface
 {
-    public interface IExamRepository<TEntity, TDBContext> :IRepository<TEntity> where TEntity : class, IEntity<string>, IHasCreationTime, IDataPermission, new()
-    where TDBContext: SugarUnitOfWork, new()
+    public interface IExamRepository<TEntity, TDBContext> : IRepository<TEntity> where TEntity : class, IEntity<string>, IHasCreationTime, IDataPermission, new()
+    where TDBContext : SugarUnitOfWork, new()
     {
         public ISugarUnitOfWork<TDBContext> UOW { get; }
 
@@ -60,7 +60,7 @@ namespace Hotline.Repository.SqlSugar.Interface
         /// <param name="entities"></param>
         /// <param name="cancellationToken"></param>
         /// <returns></returns>
-        public  Task ValidateAddAsync(List<TEntity> entities, CancellationToken cancellationToken);
+        public Task ValidateAddAsync(List<TEntity> entities, CancellationToken cancellationToken);
 
         /// <summary>
         /// 用于事务(验证修改实体)
@@ -68,7 +68,7 @@ namespace Hotline.Repository.SqlSugar.Interface
         /// <param name="entities"></param>
         /// <param name="cancellationToken"></param>
         /// <returns></returns>
-        public  Task ValidateUpdateAsync(List<TEntity> entities, CancellationToken cancellationToken);
+        public Task ValidateUpdateAsync(List<TEntity> entities, CancellationToken cancellationToken);
 
         /// <summary>
         /// 用于事务(验证删除实体)
@@ -76,7 +76,7 @@ namespace Hotline.Repository.SqlSugar.Interface
         /// <param name="entities"></param>
         /// <param name="cancellationToken"></param>
         /// <returns></returns>
-        public  Task ValidateDeleteAsync(EntityQueryRequest entityQueryRequest, CancellationToken cancellationToken);
+        public Task ValidateDeleteAsync(EntityQueryRequest entityQueryRequest, CancellationToken cancellationToken);
 
         /// <summary>
         /// 用于事务(验证新增实体)

+ 4 - 4
src/Hotline.Repository.SqlSugar/Interface/IQueryService.cs → src/Hotline.Repository.SqlSugar/Exam/Interface/IQueryService.cs

@@ -2,11 +2,11 @@
 using Exam.Infrastructure.Data.Interface;
 using XF.Domain.Dependency;
 
-namespace Hotline.Repository.SqlSugar.Interface
+namespace Hotline.Repository.SqlSugar.Exam.Interface
 {
-    public interface IQueryService<TView,TActionRequest,TQueryRequest>: IDomainService where TView : IViewResponse
-        where TQueryRequest:IQueryRequest
-        where TActionRequest:IActionRequest
+    public interface IQueryService<TView, TActionRequest, TQueryRequest> : IDomainService where TView : IViewResponse
+        where TQueryRequest : IQueryRequest
+        where TActionRequest : IActionRequest
     {
         Task<(int, List<TView>)> GetListAsync(TQueryRequest queryRequest);
 

+ 8 - 0
src/Hotline.Repository.SqlSugar/Exam/Interface/StatusActionRequest.cs

@@ -0,0 +1,8 @@
+using Exam.Infrastructure.Data.Entity;
+
+namespace Hotline.Repository.SqlSugar.Exam.Interface
+{
+    public class StatusActionRequest : ActionRequest
+    {
+    }
+}

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/ExamManages/IExamAnswerRepository.cs

@@ -4,7 +4,7 @@ using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.ExamManages;
 using Hotline.Repository.SqlSugar;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.ExamManages
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/ExamManages/IExamManageRepository.cs

@@ -1,7 +1,7 @@
-using Hotline.Repository.SqlSugar.Interface;
 using System.ComponentModel;
 using Hotline.Exams.ExamManages;
 using XF.Domain.Repository;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.ExamManages
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/ExamManages/IExamQuestionAnswerRepository.cs

@@ -1,6 +1,6 @@
 using Hotline.Exams.ExamManages;
 using Hotline.Exams.TestPapers;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 using System.ComponentModel;
 using XF.Domain.Repository;
 

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/ExamManages/IExamQuestionKnowladgeRepository.cs

@@ -3,7 +3,7 @@ using SqlSugar;
 using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.ExamManages;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.Questions
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/ExamManages/IExamQuestionOptionsRepository.cs

@@ -1,5 +1,5 @@
 using Hotline.Exams.ExamManages;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 using XF.Domain.Repository;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.ExamManages

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/ExamManages/IExamQuestionRepository.cs

@@ -1,7 +1,7 @@
-using Hotline.Repository.SqlSugar.Interface;
 using System.ComponentModel;
 using Hotline.Exams.ExamManages;
 using XF.Domain.Repository;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.Exams
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/ExamManages/IExamQuestionScoreRepository.cs

@@ -4,7 +4,7 @@ using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.ExamManages;
 using Hotline.Repository.SqlSugar;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.ExamManages
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/ExamManages/IExamQuestionSourcewareRepository.cs

@@ -3,7 +3,7 @@ using SqlSugar;
 using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.ExamManages;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.ExamManages
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/ExamManages/IExamTagRepository.cs

@@ -1,8 +1,8 @@
-using Hotline.Repository.SqlSugar.Interface;
 using System.ComponentModel;
 using System.Linq.Expressions;
 using Hotline.Exams.ExamManages;
 using XF.Domain.Repository;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.ExamManages
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/ExamManages/IExtractRuleRepository.cs

@@ -4,7 +4,7 @@ using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.ExamManages;
 using Hotline.Repository.SqlSugar;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.ExamManages
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/ExamManages/IRuleTagRepository.cs

@@ -4,7 +4,7 @@ using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.ExamManages;
 using Hotline.Repository.SqlSugar;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.ExamManages
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/ExamManages/IUserExamItemOptionRepository.cs

@@ -1,5 +1,5 @@
 using Hotline.Exams.ExamManages;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 using XF.Domain.Repository;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.ExamManages

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/ExamManages/IUserExamItemRepository.cs

@@ -4,7 +4,7 @@ using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.ExamManages;
 using Hotline.Repository.SqlSugar;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.ExamManages
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/ExamManages/IUserExamRepository.cs

@@ -4,7 +4,7 @@ using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.ExamManages;
 using Hotline.Repository.SqlSugar;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.ExamManages
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/Practices/IPracticeAnswerRepository.cs

@@ -3,7 +3,7 @@ using SqlSugar;
 using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.Practices;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.Practices
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/Practices/IPracticeQuestionKnowladgeRepository.cs

@@ -3,7 +3,7 @@ using SqlSugar;
 using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.Practices;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.Questions
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/Practices/IPracticeQuestionOptionsRepository.cs

@@ -1,5 +1,5 @@
 using Hotline.Exams.Practices;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 using System;
 using System.Collections.Generic;
 using System.Linq;

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/Practices/IPracticeQuestionRepository.cs

@@ -3,7 +3,7 @@ using SqlSugar;
 using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.Practices;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.Practices
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/Practices/IPracticeQuestionSourcewareRepository.cs

@@ -3,7 +3,7 @@ using SqlSugar;
 using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.Practices;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.Questions
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/Practices/IPracticeRecordRepository.cs

@@ -3,7 +3,7 @@ using SqlSugar;
 using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.Practices;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.Practices
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/Practices/IPracticeRepository.cs

@@ -3,7 +3,7 @@ using SqlSugar;
 using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.Practices;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.Practices
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/Practices/IPracticeResultItemRepository.cs

@@ -3,7 +3,7 @@ using SqlSugar;
 using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.Practices;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.Practices
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/Practices/IPracticeResultRepository.cs

@@ -3,7 +3,7 @@ using SqlSugar;
 using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.Practices;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.Practices
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/Practices/IPracticeTagRepository.cs

@@ -3,7 +3,7 @@ using SqlSugar;
 using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.Practices;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.Practices
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/Questions/IQuestionAnswerRepository.cs

@@ -3,7 +3,7 @@ using SqlSugar;
 using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.Questions;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.Questions
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/Questions/IQuestionKnowladgeRepository.cs

@@ -3,7 +3,7 @@ using SqlSugar;
 using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.Questions;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.Questions
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/Questions/IQuestionOptionsRepository.cs

@@ -3,7 +3,7 @@ using SqlSugar;
 using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.Questions;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.Questions
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/Questions/IQuestionRepository.cs

@@ -3,7 +3,7 @@ using SqlSugar;
 using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.Questions;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.Questions
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/Questions/IQuestionSourcewareRepository.cs

@@ -3,7 +3,7 @@ using SqlSugar;
 using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.Questions;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.Questions
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/Questions/IQuestionTagRepository.cs

@@ -3,7 +3,7 @@ using SqlSugar;
 using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.Questions;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.Questions
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/Questions/ITagQuestionRepository.cs

@@ -3,7 +3,7 @@ using SqlSugar;
 using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.ExamManages;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.Questions
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/Sourcewares/ISourcewareCategoryRepository.cs

@@ -2,10 +2,10 @@
 using SqlSugar;
 using XF.Domain.Repository;
 using System.ComponentModel;
-using Hotline.Repository.SqlSugar.Interface;
 using Hotline.Share.Requests.Sourceware;
 using System.Linq.Expressions;
 using Hotline.Exams.Sourcewares;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.Sourcewares
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/Sourcewares/ISourcewareRepository.cs

@@ -2,8 +2,8 @@
 using SqlSugar;
 using XF.Domain.Repository;
 using System.ComponentModel;
-using Hotline.Repository.SqlSugar.Interface;
 using Hotline.Exams.Sourcewares;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.Sourcewares
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/TestPapers/ITestPaperItemAnswerRepository.cs

@@ -1,5 +1,5 @@
 using Hotline.Exams.TestPapers;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 using System.ComponentModel;
 using XF.Domain.Repository;
 

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/TestPapers/ITestPaperItemKnowladgeRepository.cs

@@ -3,7 +3,7 @@ using SqlSugar;
 using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.TestPapers;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.Questions
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/TestPapers/ITestPaperItemOptionsRepository.cs

@@ -1,5 +1,5 @@
 using Hotline.Exams.TestPapers;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 using XF.Domain.Repository;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.TestPapers

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/TestPapers/ITestPaperItemRepository.cs

@@ -3,7 +3,7 @@ using SqlSugar;
 using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.TestPapers;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.TestPapers
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/TestPapers/ITestPaperItemSourcewareRepository.cs

@@ -3,7 +3,7 @@ using SqlSugar;
 using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.TestPapers;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.Questions
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/TestPapers/ITestPaperRepository.cs

@@ -3,7 +3,7 @@ using SqlSugar;
 using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.TestPapers;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.TestPapers
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/TestPapers/ITestPaperRuleRepository.cs

@@ -3,7 +3,7 @@ using SqlSugar;
 using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.TestPapers;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.TestPapers
 {
     /// <summary>

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/TestPapers/ITestPaperRuleTagRepository.cs

@@ -3,7 +3,7 @@ using SqlSugar;
 using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.TestPapers;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.TestPapers
 {
     /// <summary>

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/Trains/ITrainKnowladgeRepository.cs

@@ -3,7 +3,7 @@ using SqlSugar;
 using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.Trains;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.Trains
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/Trains/ITrainPlanRepository.cs

@@ -3,7 +3,7 @@ using SqlSugar;
 using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.Trains;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.Trains
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/Trains/ITrainPlanTemplateRepository.cs

@@ -1,5 +1,5 @@
 using Hotline.Exams.Trains;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 using System.ComponentModel;
 using XF.Domain.Repository;
 

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/Trains/ITrainPracticeKnowladgeRepository.cs

@@ -3,7 +3,7 @@ using SqlSugar;
 using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.Trains;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.Questions
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/Trains/ITrainPracticeOptionsRepository.cs

@@ -1,5 +1,5 @@
 using Hotline.Exams.Trains;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 using System;
 using System.Collections.Generic;
 using System.ComponentModel;

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/Trains/ITrainPracticeRepository.cs

@@ -3,7 +3,7 @@ using SqlSugar;
 using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.Trains;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.Trains
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/Trains/ITrainPracticeSourcewareRepository.cs

@@ -3,7 +3,7 @@ using SqlSugar;
 using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.Trains;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.Questions
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/Trains/ITrainRecordAnswerRepository.cs

@@ -3,7 +3,7 @@ using SqlSugar;
 using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.Trains;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.Trains
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/Trains/ITrainRecordItemRepository.cs

@@ -3,7 +3,7 @@ using SqlSugar;
 using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.Trains;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.Trains
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/Trains/ITrainRecordRepository.cs

@@ -3,7 +3,7 @@ using SqlSugar;
 using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.Trains;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.Trains
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/Trains/ITrainTemplateRepository.cs

@@ -3,7 +3,7 @@ using SqlSugar;
 using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.Trains;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.Trains
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Interfaces/Trains/ITrainUserRepository.cs

@@ -3,7 +3,7 @@ using SqlSugar;
 using XF.Domain.Repository;
 using System.ComponentModel;
 using Hotline.Exams.Trains;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 
 namespace Hotline.Repository.SqlSugar.Exam.Interfaces.Trains
 {

+ 1 - 1
src/Hotline.Repository.SqlSugar/Exam/Repositories/ExamRepository.cs

@@ -7,7 +7,7 @@ using Exam.Infrastructure.Validation.Validation;
 using FluentValidation;
 using Hotline.Exams.Validate;
 using Hotline.Repository.SqlSugar.DataPermissions;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 using SqlSugar;
 using XF.Domain.Entities;
 using XF.Domain.Exceptions;

+ 13 - 13
src/Hotline.Repository.SqlSugar/Service/ApiService.cs → src/Hotline.Repository.SqlSugar/Exam/Service/ApiService.cs

@@ -2,8 +2,8 @@
 using Exam.Infrastructure.Data.Interface;
 using FluentValidation;
 using Hotline.Repository.SqlSugar.Exam.Core.Constants;
-using Hotline.Repository.SqlSugar.Extensions;
-using Hotline.Repository.SqlSugar.Interface;
+using Hotline.Repository.SqlSugar.Exam.Extensions;
+using Hotline.Repository.SqlSugar.Exam.Interface;
 using Mapster;
 using MapsterMapper;
 using Microsoft.AspNetCore.Http;
@@ -14,11 +14,11 @@ using XF.Domain.Authentications;
 using XF.Domain.Entities;
 using XF.Domain.Repository;
 
-namespace Exam.Insfrastructure.Service.Service
+namespace Hotline.Repository.SqlSugar.Exam.Service
 {
-    public class ApiService<T,TAdd, TUpdate, TDBContext> : IApiService<TAdd,TUpdate, T> 
+    public class ApiService<T, TAdd, TUpdate, TDBContext> : IApiService<TAdd, TUpdate, T>
         where TAdd : IAddRequest
-        where TUpdate: IActionRequest
+        where TUpdate : IActionRequest
         where T : class, IEntity<string>, IHasCreationTime, IDataPermission, new()
         where TDBContext : SugarUnitOfWork, new()
     {
@@ -36,14 +36,14 @@ namespace Exam.Insfrastructure.Service.Service
 
         public T Entity { get; set; }
 
-        public ApiService(IExamRepository<T, TDBContext> repository,IMapper mapper,ISessionContext sessionContext = null)
+        public ApiService(IExamRepository<T, TDBContext> repository, IMapper mapper, ISessionContext sessionContext = null)
         {
             _repository = repository;
             _validator = _repository.Validator;
             _mapper = mapper;
-            this._sessionContext = sessionContext;
+            _sessionContext = sessionContext;
             _uow = _repository.UOW;
-        } 
+        }
         #endregion
 
         #region public method
@@ -53,7 +53,7 @@ namespace Exam.Insfrastructure.Service.Service
             _isStartTrain = true;
         }
 
-        public InsertNavTaskInit<T,T> AddNav(T entity)
+        public InsertNavTaskInit<T, T> AddNav(T entity)
         {
             return _repository.AddNav(entity);
         }
@@ -74,7 +74,7 @@ namespace Exam.Insfrastructure.Service.Service
         /// <param name="entity"></param>
         /// <param name="operationConstant"></param>
         /// <returns></returns>
-        public async Task Complete(T entity,string operationConstant)
+        public async Task Complete(T entity, string operationConstant)
         {
             if (_isStartTrain)
             {
@@ -93,7 +93,7 @@ namespace Exam.Insfrastructure.Service.Service
                         await CompleteAdd(entity);
                         break;
                 }
-             
+
             }
         }
 
@@ -265,7 +265,7 @@ namespace Exam.Insfrastructure.Service.Service
         {
             var entity = await _repository.GetAsync(actionRequest.Id);
 
-            entity = _mapper.Map<TUpdate, T>(actionRequest,entity);
+            entity = _mapper.Map(actionRequest, entity);
 
             entity.ToUpdate(_sessionContext);
 
@@ -292,7 +292,7 @@ namespace Exam.Insfrastructure.Service.Service
             var ids = actionRequests.Select(x => x.Id).ToList();
             var entities = await _repository.QueryAsync(x => ids.Contains(x.Id));
 
-            entities = _mapper.Map<List<TUpdate>, List<T>>(actionRequests,entities);
+            entities = _mapper.Map(actionRequests, entities);
 
             entities.ToUpdate(_sessionContext);
             if (_isStartTrain)

+ 2 - 2
src/Hotline.Repository.SqlSugar/Validate/BaseValidator.cs → src/Hotline.Repository.SqlSugar/Exam/Validate/BaseValidator.cs

@@ -4,9 +4,9 @@ using FluentValidation;
 using Hotline.Exams.Validate;
 using XF.Domain.Repository;
 
-namespace Hotline.Repository.SqlSugar.Validate
+namespace Hotline.Repository.SqlSugar.Exam.Validate
 {
-    public class BaseValidator<T>:AbstractValidator<T> where T:CreationEntity
+    public class BaseValidator<T> : AbstractValidator<T> where T : CreationEntity
     {
 
         protected virtual void ValidateRuleWithModify()

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно