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 { /// /// 版 本 Learun-ADMS-Ultimate V7.0.0 力软敏捷开发框架 /// Copyright (c) 2013-2018 上海力软信息技术有限公司 /// 创 建:超级管理员 /// 日 期:2019-08-19 17:50 /// 描 述:教师注册 /// public class PushMessageApi : BaseNoLoginApi { /// /// 推送消息接口 /// 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 私有类 /// /// 表单实体类 /// private class ReqFormEntity { public string keyValue { get; set; } public string strEntity { get; set; } } #endregion } }