package org.dromara.common.mq.domain;

import cn.hutool.core.util.IdUtil;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@Builder(toBuilder = true)
@AllArgsConstructor
@NoArgsConstructor
public class MQMessage {
    /**
     * 消息ID
     */
    private String messageId;
    /**
     * 消息主题
     */
    private String topic;
    /**
     * 消息标签
     */
    private String tag;
    /**
     * 消息类型
     */
    private String
        messageType;
    /**
     * 消息内容
     */
    private Object data;
    /**
     * 消息来源
     */
    private String source;
    /**
     * 发送时间
     */
    private LocalDateTime sendTime;
}
