package com.ruoyi.cms.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

import java.util.Date;

@Data
@TableName(value = "notice")
public class Notice extends BaseEntity
{
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** ID */
    @TableId(value = "notice_id",type = IdType.AUTO)
    private Long noticeId;
    /** 公告标题 */
    private String title;
    private String subTitle;
    private Integer notReadCount;
    private Integer isRead;
    @JsonFormat(pattern = "MM-dd")
    private Date date;
    private String noticeType;
    /** 公告内容 */
    private String noticeContent;
    private Long userId;
    private Long bussinessId;
}
