using System; using System.Collections.Generic; using System.Linq; using System.Data; using System.Text.RegularExpressions; using Library; using MySystem.Service.Main; using MySystem.Service.Bs; using System.IO; using System.Web; using Microsoft.IdentityModel.Tokens; using System.Security.Claims; using System.IdentityModel.Tokens.Jwt; using System.Text; using AppConfig; namespace MySystem { /// /// 基础功能方法 /// public class BaseClass { #region 推送个人消息 /// /// 推送个人消息 /// /// 接收创客 /// 展示类型(0 html页面 1 指定url 2 简单中文描述) /// 标题 /// 内容 /// 简介 public static void SendPersonalMsg(int UserId, int MsgType, string Title, string Content, string Summary) { RedisDbconn.Instance.AddList("MsgPersonalQueue", Newtonsoft.Json.JsonConvert.SerializeObject(new MySystem.Models.Main.MsgPersonal() { UserId = UserId, //接收创客 MsgType = MsgType, //展示类型 Title = Title, //标题 Content = Content, //内容 Summary = Summary, //简介 })); } #endregion } }