IExamTeacherCourseService.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. using YBEE.EQM.Core;
  2. namespace YBEE.EQM.Application;
  3. /// <summary>
  4. /// 监测教师任教科目管理服务
  5. /// </summary>
  6. public interface IExamTeacherCourseService
  7. {
  8. #region 批量导入
  9. /// <summary>
  10. /// 上传监测教师批量导入文件
  11. /// </summary>
  12. /// <param name="filePath"></param>
  13. /// <param name="examPlanId"></param>
  14. /// <returns></returns>
  15. Task<UploadExamDataOutput<UploadExamTeacherCourseOutput>> Upload(string filePath, int examPlanId);
  16. /// <summary>
  17. /// 批量导入监测教师
  18. /// </summary>
  19. /// <param name="input"></param>
  20. /// <returns></returns>
  21. Task Import(ImportExamTeacherCourseInput input);
  22. #endregion
  23. #region 批量导出
  24. /// <summary>
  25. /// 导出TQES导入文件格式文件包
  26. /// </summary>
  27. /// <param name="examPlanId"></param>
  28. /// <returns></returns>
  29. /// <exception cref="Exception"></exception>
  30. Task<(string, byte[])> ExportTqesFile(int examPlanId);
  31. #endregion
  32. #region 创建编辑
  33. /// <summary>
  34. /// 添加监测教师
  35. /// </summary>
  36. /// <param name="input"></param>
  37. /// <returns></returns>
  38. Task Add(AddExamTeacherCourseInput input);
  39. /// <summary>
  40. /// 更新监测教师
  41. /// </summary>
  42. /// <param name="input"></param>
  43. /// <returns></returns>
  44. Task Update(UpdateExamTeacherCourseInput input);
  45. /// <summary>
  46. /// 删除监测教师
  47. /// </summary>
  48. /// <param name="input"></param>
  49. /// <returns></returns>
  50. Task Del(BaseId input);
  51. /// <summary>
  52. /// 清空监测教师
  53. /// </summary>
  54. /// <param name="input"></param>
  55. /// <returns></returns>
  56. Task Clear(ClearExamTeacherCourseInput input);
  57. #endregion
  58. #region 查询统计
  59. /// <summary>
  60. /// 分页查询监测教师列表
  61. /// </summary>
  62. /// <param name="input"></param>
  63. /// <returns></returns>
  64. Task<PageResult<ExamTeacherCourseOutput>> QueryPageList(ExamTeacherCoursePageInput input);
  65. #endregion
  66. }