package com.xinelu.mobile.vo.wechatofficialaccountcallback;

import lombok.Data;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;

import java.io.Serializable;

/**
 * @Description 微信公众号模板消息事件推送实体类
 * @Author 纪寒
 * @Date 2024-03-25 13:36:17
 * @Version 1.0
 */
@Root(name = "xml", strict = false)
@Data
public class WeChatOfficialAccountEventPushVO implements Serializable {
    private static final long serialVersionUID = 4329284826265109369L;
    /**
     * 公众号微信号
     */
    @Element(name = "ToUserName", required = false)
    private String toUserName;

    /**
     * 接收模板消息的用户的openid
     */
    @Element(name = "FromUserName", required = false)
    private String fromUserName;

    /**
     * 创建时间
     */
    @Element(name = "CreateTime", required = false)
    private String createTime;

    /**
     * 消息类型是事件
     */
    @Element(name = "MsgType", required = false)
    private String msgType;

    /**
     * 事件为模板消息发送结束
     */
    @Element(name = "Event", required = false)
    private String event;

    /**
     * 消息id
     */
    @Element(name = "MsgID", required = false)
    private String msgId;

    /**
     * 发送状态为，成功：success，用户拒绝接收：failed:user block，发送失败（非用户拒绝）：failed:system failed
     */
    @Element(name = "Status", required = false)
    private String status;
}
