package com.artfess.rocketmq.model;

import lombok.Data;

/**
 * @author 陈实
 * @Package com.artfess.bzzgj.util
 * @date 2023/4/13 17:17
 * @Description:
 */
@Data
public class MessageBody {
    // 消息id
    private String messageId;
    // body组装时间
    private long timestamp;
    // 来源 附加信息
    private String msgSource;
    //消息内容
    private Object data;

    public MessageBody() {

    }

    public MessageBody(String msgKey, Object data, String msgSource) {
        this.messageId = msgKey;
        this.data = data ;
        this.msgSource = msgSource;
        this.timestamp = System.currentTimeMillis();
    }

}
