package cn.reghao.oss.console.sys.model.po;

import cn.reghao.oss.console.util.db.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.Entity;

/**
 * @author reghao
 * @date 2024-02-05 09:25:39
 */
@AllArgsConstructor
@NoArgsConstructor
@Setter
@Getter
@Entity
public class SysMessage extends BaseEntity {
    private String title;
    private Boolean unread;
    private String content;

    public SysMessage(String title, String content) {
        this.title = title;
        this.unread = true;
        this.content = content;
    }
}
