您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

33 行
817 B

  1. using Nancy;
  2. namespace Learun.Application.WebApi.Modules
  3. {
  4. /// <summary>
  5. /// 版 本 Learun-ADMS V7.0.0 数字化智慧校园
  6. /// Copyright (c) 2013-2018 北京泉江科技有限公司
  7. /// 创建人:数字化智慧校园-框架开发组
  8. /// 日 期:2017.05.12
  9. /// 描 述:通用功能
  10. /// </summary>
  11. public class UtilityApi : BaseApi
  12. {
  13. /// <summary>
  14. /// 注册接口
  15. /// </summary>
  16. public UtilityApi()
  17. : base("/learun/adms")
  18. {
  19. Get["/heart"] = Heart;
  20. }
  21. /// <summary>
  22. /// 登录接口
  23. /// </summary>
  24. /// <param name="_"></param>
  25. /// <returns></returns>
  26. private Response Heart(dynamic _)
  27. {
  28. return Success("成功");
  29. }
  30. }
  31. }