You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
poetize/poetize-server/src/main/java/com/ld/poetry/entity/Article.java

142 lines
2.4 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.ld.poetry.entity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* <p>
* 文章表
* </p>
*
* @author sara
* @since 2021-09-14
*/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("article")
public class Article implements Serializable {
private static final long serialVersionUID = 1L;
/**
* id
*/
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
/**
* 用户ID
*/
@TableField("user_id")
private Integer userId;
/**
* 分类ID
*/
@TableField("sort_id")
private Integer sortId;
/**
* 标签ID
*/
@TableField("label_id")
private Integer labelId;
/**
* 封面
*/
@TableField("article_cover")
private String articleCover;
/**
* 博文标题
*/
@TableField("article_title")
private String articleTitle;
/**
* 博文内容
*/
@TableField("article_content")
private String articleContent;
/**
* 视频链接
*/
@TableField("video_url")
private String videoUrl;
/**
* 密码
*/
@TableField("password")
private String password;
/**
* 提示
*/
@TableField("tips")
private String tips;
/**
* 是否可见[0:否1:是]
*/
@TableField("view_status")
private Boolean viewStatus;
/**
* 浏览量
*/
@TableField("view_count")
private Integer viewCount;
/**
* 点赞数
*/
@TableField("like_count")
private Integer likeCount;
/**
* 是否启用评论[0:否1:是]
*/
@TableField("comment_status")
private Boolean commentStatus;
/**
* 是否推荐[0:否1:是]
*/
@TableField("recommend_status")
private Boolean recommendStatus;
/**
* 创建时间
*/
@TableField("create_time")
private LocalDateTime createTime;
/**
* 最终修改时间
*/
@TableField("update_time")
private LocalDateTime updateTime;
/**
* 最终修改人
*/
@TableField(value = "update_by", fill = FieldFill.UPDATE)
private String updateBy;
/**
* 是否启用[0:未删除1:已删除]
*/
@TableField("deleted")
@TableLogic
private Boolean deleted;
}