|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- using Nancy;
- using Learun.Util;
- using System.Collections.Generic;
- using Learun.Application.TwoDevelopment.EducationalAdministration;
- using static Learun.Application.WebApi.Modules.StuInfoFreshApi;
- using System;
- using System.IO;
- using Learun.Application.Base.SystemModule;
-
- namespace Learun.Application.WebApi
- {
- /// <summary>
- /// 版 本 Learun-ADMS-Ultimate V7.0.0 力软敏捷开发框架
- /// Copyright (c) 2013-2018 上海力软信息技术有限公司
- /// 创 建:超级管理员
- /// 日 期:2019-08-19 17:50
- /// 描 述:教师注册
- /// </summary>
-
- public class PushMessageApi : BaseNoLoginApi
- {
-
- /// <summary>
- /// 推送消息接口
- /// <summary>
- public PushMessageApi()
- : base("/Learun/adms/pushMessage")
- {
- Get["/msg"] = PushMessage;
- }
-
- private Response PushMessage(dynamic _)
- {
- string msg = this.Request.Query["msg"].ToString();
-
- if (!string.IsNullOrEmpty(msg))
- {
- SendHubs.callMethod("pushMessage", msg);
- }
- return Success("成功");
- }
-
- #region 获取数据
-
-
- #endregion
-
- #region 私有类
-
- /// <summary>
- /// 表单实体类
- /// <summary>
- private class ReqFormEntity
- {
- public string keyValue { get; set; }
- public string strEntity { get; set; }
- }
- #endregion
-
- }
- }
|