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 io.swagger.annotations.ApiModelProperty;
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;

    @TableId(value = "notice_id",type = IdType.AUTO)
    private Long noticeId;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("副标题")
    private String subTitle;

    @ApiModelProperty("未读数量")
    private Integer notReadCount;

    @ApiModelProperty("是否阅读 0未读 1已读")
    private String isRead;

    @JsonFormat(pattern = "MM-dd")
    @ApiModelProperty("日期")
    private Date date;

    @ApiModelProperty("通知类型 1系统通知(包括录用) 2职位上新")
    private String noticeType;

    @ApiModelProperty("公告内容")
    private String noticeContent;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("业务id")
    private Long bussinessId;
}
