using MediatR; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ApiTools.Core { /// /// 微信小程序订阅消息通知 /// [Resource([EnumResourceController.CommonServerWxmpUtils], AllowAnonymous = true)] public class WxmpSubscribMessageNotifyCommand : IRequest { /// /// 小程序代码 /// public string Code { get; set; } /// /// 用户开放Id /// public string OpenId { get; set; } /// /// 接收人 /// public string ToUserName { get; set; } /// /// 发送人 /// public string FromUserName { get; set; } /// /// 创建时间 /// public int CreateTime { get; set; } /// /// 消息类型 /// public string MsgType { get; set; } /// /// 事件 /// public string Event { get; set; } /// /// 内容 /// [JsonProperty("List")] public WxmpSubscribMessageNotifyCommandContent Content { get; set; } } public class WxmpSubscribMessageNotifyCommandContent { /// /// 场景 /// public string PopupScene { get; set; } /// /// 状态 /// public string SubscribeStatusString { get; set; } /// /// 模板Id /// public string TemplateId { get; set; } } }