package com.zhgd.xmgl.modules.basicdata.entity;

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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 通知公告表
 * @author： pengj
 * @date： 2023-03-02
 * @version： V1.0
 */
@Data
@TableName("notice")
@ApiModel(value = "Notice实体类", description = "Notice")
public class Notice implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 通知公告ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "通知公告ID")
    private Long noticeId;
    /**
     * 通知标题
     */
    @Excel(name = "通知标题", width = 15)
    @ApiModelProperty(value = "通知标题")
    private String title;
    /**
     * 通知内容
     */
    @Excel(name = "通知内容", width = 15)
    @ApiModelProperty(value = "通知内容")
    private String content;
    /**
     * 通知类型
     */
    @Excel(name = "通知类型", width = 15)
    @ApiModelProperty(value = "通知类型")
    private String type;
    /**
     * 发件单位
     */
    @Excel(name = "发件单位", width = 15)
    @ApiModelProperty(value = "发件单位")
    private String createBy;
    /**
     * 发布时间
     */
    @Excel(name = "发布时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "发布时间")
    private Date createTime;

    /**
     * 发布单位名称
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "发布单位名称")
    private String createByName;
}
