using YBEE.EQM.Core;
namespace YBEE.EQM.Application;
///
/// 试卷小题管理服务
///
public class ExamPaperQuestionMinorAppService : IDynamicApiController
{
private readonly IExamPaperQuestionMinorService _examPaperQuestionMinorService;
public ExamPaperQuestionMinorAppService(IExamPaperQuestionMinorService examPaperQuestionMinorService)
{
_examPaperQuestionMinorService = examPaperQuestionMinorService;
}
///
/// 添加
///
///
///
public async Task Add(AddExamPaperQuestionMinorInput input)
{
await _examPaperQuestionMinorService.Add(input);
}
///
/// 更新
///
///
///
public async Task Update(UpdateExamPaperQuestionMinorInput input)
{
await _examPaperQuestionMinorService.Update(input);
}
///
/// 批量更新
///
///
///
public async Task BatchUpdate(BatchUpdateExamPaperQuestionMinorInput input)
{
await _examPaperQuestionMinorService.BatchUpdate(input);
}
///
/// 删除
///
///
///
public async Task Del(BaseId input)
{
await _examPaperQuestionMinorService.Del(input);
}
///
/// 根据试卷ID获取小题列表
///
///
///
public async Task> GetListByExamPaperId([FromQuery][Required] int examPaperId)
{
return await _examPaperQuestionMinorService.GetListByExamPaperId(examPaperId);
}
}