76 lines
1.3 KiB
Java
76 lines
1.3 KiB
Java
package com.yupi.springbootinit.model.entity;
|
|
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
import com.baomidou.mybatisplus.annotation.TableLogic;
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
import java.io.Serializable;
|
|
import java.util.Date;
|
|
import lombok.Data;
|
|
|
|
/**
|
|
* 帖子
|
|
*
|
|
* @author <a href="https://github.com/liyupi">程序员鱼皮</a>
|
|
* @from <a href="https://yupi.icu">编程导航知识星球</a>
|
|
*/
|
|
@TableName(value = "post")
|
|
@Data
|
|
public class Post implements Serializable {
|
|
|
|
/**
|
|
* id
|
|
*/
|
|
@TableId(type = IdType.ASSIGN_ID)
|
|
private Long id;
|
|
|
|
/**
|
|
* 标题
|
|
*/
|
|
private String title;
|
|
|
|
/**
|
|
* 内容
|
|
*/
|
|
private String content;
|
|
|
|
/**
|
|
* 标签列表 json
|
|
*/
|
|
private String tags;
|
|
|
|
/**
|
|
* 点赞数
|
|
*/
|
|
private Integer thumbNum;
|
|
|
|
/**
|
|
* 收藏数
|
|
*/
|
|
private Integer favourNum;
|
|
|
|
/**
|
|
* 创建用户 id
|
|
*/
|
|
private Long userId;
|
|
|
|
/**
|
|
* 创建时间
|
|
*/
|
|
private Date createTime;
|
|
|
|
/**
|
|
* 更新时间
|
|
*/
|
|
private Date updateTime;
|
|
|
|
/**
|
|
* 是否删除
|
|
*/
|
|
@TableLogic
|
|
private Integer isDelete;
|
|
|
|
@TableField(exist = false)
|
|
private static final long serialVersionUID = 1L;
|
|
} |