package cn.van.business.model.wx;

/**
 * @author Leo
 * @version 1.0
 * @create 2024/11/9 上午12:06
 * @description：
 */

import lombok.Data;

import java.util.List;

/**
 * Entity class representing the structure of the WX message event.
 */
@Data
public class WxMessage {

    private Integer event;
    private String wxid;
    private DataSection data;

    /**
     * Nested class to hold the data section of the WX message.
     */
    @Data
    public static class DataSection {
        private String type;
        private String des;
        private InnerData data;
        private Long timestamp;
        private String wxid;
        private Integer port;
        private Integer pid;
        private String flag;

        /**
         * Nested class for the innermost data structure.
         */
        @Data
        public static class InnerData {
            private Long timeStamp;
            private Integer fromType;
            private Integer msgType;
            private Integer msgSource;
            private String fromWxid;
            private String finalFromWxid;
            private List<String> atWxidList;
            private Integer silence;
            private Integer membercount;
            private String signature;
            private String msg;
            private String msgId;
            private String msgBase64;
        }
    }
}
