using YBEE.EQM.Core; namespace YBEE.EQM.Application; /// /// 试卷大题管理服务 /// [ApiDescriptionSettings(Name = "exam-paper-question-major")] [Route("exam/paper/question/major")] public class ExamPaperQuestionMajorAppService : IDynamicApiController { private readonly IExamPaperQuestionMajorService _examPaperQuestionMajorService; public ExamPaperQuestionMajorAppService(IExamPaperQuestionMajorService examPaperQuestionMajorService) { _examPaperQuestionMajorService = examPaperQuestionMajorService; } /// /// 添加 /// /// /// public async Task Add(AddExamPaperQuestionMajorInput input) { await _examPaperQuestionMajorService.Add(input); } /// /// 更新 /// /// /// public async Task Update(UpdateExamPaperQuestionMajorInput input) { await _examPaperQuestionMajorService.Update(input); } /// /// 删除 /// /// /// public async Task Del(BaseId input) { await _examPaperQuestionMajorService.Del(input); } /// /// 根据试卷ID获取大题列表 /// /// /// public async Task> GetListByExamPaperId(int examPaperId) { return await _examPaperQuestionMajorService.GetListByExamPaperId(examPaperId); } }