Files
wjh/src/main/java/com/example/entity/Announcement.java
2026-05-24 00:24:56 +08:00

59 lines
1.0 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package com.example.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.util.Date;
/**
* 公告实体类
*/
@Data
@TableName("announcement")
public class Announcement {
/**
* ID
*/
@TableId(type = IdType.AUTO)
private Integer id;
/**
* 标题
*/
private String title;
/**
* 内容
*/
private String content;
/**
* 创建时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime;
/**
* 是否置顶
*/
private Boolean isTop;
/**
* 状态1-发布0-草稿)
*/
private Integer status;
/**
* 发布人ID
*/
private Integer publisherId;
/**
* 发布人姓名
*/
private String publisherName;
}