package com.gxwebsoft.cms.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

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

/**
 * 文档管理记录表
 *
 * @author 科技小王子
 * @since 2023-10-22 15:47:09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "Docs对象", description = "文档管理记录表")
@TableName("cms_docs")
public class Docs implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "文档ID")
    @TableId(value = "docs_id", type = IdType.AUTO)
    private Integer docsId;

    @ApiModelProperty(value = "书籍ID")
    private Integer bookId;

    @ApiModelProperty(value = "文档标题")
    private String title;

    @ApiModelProperty(value = "上级目录")
    private Integer parentId;

    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    @ApiModelProperty(value = "可见性(public,private,protected)")
    private String visibility;

    @ApiModelProperty(value = "虚拟阅读量(仅用作展示)")
    private Integer virtualViews;

    @ApiModelProperty(value = "实际阅读量")
    private Integer actualViews;

    @ApiModelProperty(value = "排序(数字越小越靠前)")
    private Integer sortNumber;

    @ApiModelProperty(value = "文章内容ID")
    @TableField(exist = false)
    private Integer contentId;

    @ApiModelProperty(value = "文章内容")
    @TableField(exist = false)
    private String content;

    @ApiModelProperty(value = "备注")
    private String comments;

    @ApiModelProperty(value = "状态, 0正常, 1冻结")
    private Integer status;

    @ApiModelProperty(value = "是否删除, 0否, 1是")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "租户id")
    private Integer tenantId;

    @ApiModelProperty(value = "注册时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "书籍标识")
    @TableField(exist = false)
    private String code;

}
