package com.sikey.wa04.business.domain.entity;

import jakarta.persistence.Column;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.annotations.ColumnDefault;

import java.time.Instant;

/**
 * @Author: qin
 * @Date: 2025/3/18
 * @Description: 消息中心
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ToString
public class MessageCenter<T> {

    /**
     * 儿童id
     */
    private String cid;

    /**
     * 消息类型
     */
    private Integer messageType;

    /**
     * 创建时间
     */
    private Instant createdAt;

    /**
     * 消息参数
     */
    private T messageParams;

}
