Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 
 

50 righe
1.6 KiB

  1. using Nancy;
  2. using Learun.Util;
  3. using System.Collections.Generic;
  4. using Learun.Application.TwoDevelopment.EducationalAdministration;
  5. using Learun.Application.TwoDevelopment.PersonnelManagement;
  6. namespace Learun.Application.WebApi.Modules
  7. {
  8. /// <summary>
  9. /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
  10. /// Copyright (c) 2013-2018 北京泉江科技有限公司
  11. /// 创 建:超级管理员
  12. /// 日 期:2019-12-24 17:07
  13. /// 描 述:图书借阅
  14. /// </summary>
  15. public class DutyScheduleApi : BaseApi
  16. {
  17. private DutyScheduleIBLL dutyScheduleIBLL = new DutyScheduleBLL();
  18. /// <summary>
  19. /// 注册接口
  20. /// <summary>
  21. public DutyScheduleApi()
  22. : base("/Learun/adms/PersonnelManagement/DutySchedule")
  23. {
  24. Get["/pagelist"] = GetPageList;
  25. }
  26. #region 获取数据
  27. /// <summary>
  28. /// 获取页面显示列表分页数据
  29. /// <summary>
  30. /// <param name="_"></param>
  31. /// <returns></returns>
  32. public Response GetPageList(dynamic _)
  33. {
  34. ReqPageParam parameter = this.GetReqData<ReqPageParam>();
  35. var data = dutyScheduleIBLL.GetPageList(parameter.pagination, parameter.queryJson);
  36. var jsonData = new
  37. {
  38. rows = data,
  39. total = parameter.pagination.total,
  40. page = parameter.pagination.page,
  41. records = parameter.pagination.records
  42. };
  43. return Success(jsonData);
  44. }
  45. #endregion
  46. }
  47. }