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