using YBEE.EQM.Core;
namespace YBEE.EQM.Application;
///
/// 特殊学生管理服务(用于中心管理)
///
[ApiDescriptionSettings(Name = "exam-special-student-center")]
[Route("exam/special/student/center")]
public class ExamSpecialStudentCenterAppService(IExamSpecialStudentCenterService examSpecialStudentCenterService) : IDynamicApiController
{
///
/// 分页查询列表
///
///
///
public async Task> QueryPageList(ExamSpecialStudentPageInput input)
{
return await examSpecialStudentCenterService.QueryPageList(input);
}
///
/// 获取状态数量
///
///
public async Task> QueryStatusCount(ExamSpecialStudentPageInput input)
{
return await examSpecialStudentCenterService.QueryStatusCount(input);
}
///
/// 导出数据表格(简表)
///
///
///
public async Task ExportSimple(ExamSpecialStudentPageInput input)
{
var (fileName, fileBytes) = await examSpecialStudentCenterService.ExportSimple(input);
return new FileContentResult(fileBytes, "application/octet-stream")
{
FileDownloadName = fileName,
};
}
///
/// 导出数据表格(完整)
///
///
///
public async Task ExportFull(ExamSpecialStudentPageInput input)
{
var (fileName, fileBytes) = await examSpecialStudentCenterService.ExportFull(input);
return new FileContentResult(fileBytes, "application/octet-stream")
{
FileDownloadName = fileName,
};
}
}