package com.sikey.wa04.common.dto.message;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ToString(callSuper = true)
public class BasicChatMessage extends BasicMessage implements Serializable {

    @Serial
    private static final long serialVersionUID = -316663228312864097L;

    /**
     * 是否是群聊消息
     */
    private Boolean isGroup;

    /**
     * 群组id
     */
    private String groupId;

    /**
     * 消息内容 <br/>
     * 子类一般会重载这个字段
     */
    private Object content;
}
