sunpengfei
2025-12-01 c87d61d03b48a6f55c0a0819b9be522f77e3c9a0
ApiTools.Core/Models/WxmpUtils/Commands/WxmpSubscribMessageNotifyCommand.cs
@@ -1,4 +1,5 @@
using MediatR;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -10,15 +11,35 @@
    /// <summary>
    /// 微信小程序订阅消息通知
    /// </summary>
    [Resource([EnumResourceController.CommonServerWxmpUtils], Method = EnumResourceMethod.Get)]
    [Resource([EnumResourceController.CommonServerWxmpUtils], AllowAnonymous = true)]
    public class WxmpSubscribMessageNotifyCommand : IRequest<bool>
    {
        /// <summary>
        /// 小程序代码
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 用户开放Id
        /// </summary>
        public string OpenId { get; set; }
        public string ToUserName { get; set; }
        public string FromUserName { get; set; }
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public int CreateTime { get; set; }
        /// <summary>
        /// 消息类型
        /// </summary>
        public string MsgType { get; set; }
        /// <summary>
        /// 事件
        /// </summary>
        public string Event { get; set; }
        /// <summary>
        /// 内容
        /// </summary>
        [JsonProperty("debug_str")]
        public string Content { get; set; }
    }
}