package org.xyzh.common.wechat.pojo.kefu;

import lombok.Data;

/**
 * @description    客服消息
 * @filename    KefuMessage.java
 * @author    yslg
 * @copyright xyzh
 * @since 2025-12-19
 */
@Data
public class KefuMessage {
    
    private String touser;
    
    private String openKfid;
    
    private String msgid;
    
    private String msgtype;
    
    private TextContent text;
    
    private ImageContent image;
    
    private LinkContent link;
    
    private MiniprogramContent miniprogram;
    
    @Data
    public static class TextContent {
        private String content;
    }
    
    @Data
    public static class ImageContent {
        private String mediaId;
    }
    
    @Data
    public static class LinkContent {
        private String title;
        private String desc;
        private String url;
        private String thumbMediaId;
    }
    
    @Data
    public static class MiniprogramContent {
        private String appid;
        private String pagepath;
        private String title;
        private String thumbMediaId;
    }
    
}
