知识库代码框架

This commit is contained in:
spllzh
2025-10-28 08:39:35 +08:00
parent 7af226b8a4
commit 6c40d95604
26 changed files with 832 additions and 3 deletions

View File

@@ -0,0 +1,92 @@
package com.rj.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* <p>
* 知识库管理表
* </p>
*
* @author 李中华 ,spllzh
* @since 2025-01-27
*/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("knowledge_base")
@Schema(description="知识库管理表")
public class KnowledgeBase implements Serializable {
private static final long serialVersionUID = 1L;
@Schema(description = "主键IDUUID")
@TableId("id")
private String id;
@Schema(description = "知识标题")
@TableField("title")
private String title;
@Schema(description = "知识分类")
@TableField("category")
private String category;
@Schema(description = "应用行业")
@TableField("industry")
private String industry;
@Schema(description = "知识内容")
@TableField("content")
private String content;
@Schema(description = "创建人")
@TableField("creator")
private String creator;
@Schema(description = "创建时间")
@TableField("create_time")
private LocalDateTime createTime;
@Schema(description = "更新时间")
@TableField("update_time")
private LocalDateTime updateTime;
@Schema(description = "状态:已发布、草稿、已下架")
@TableField("status")
private String status;
@Schema(description = "浏览次数")
@TableField("view_count")
private Integer viewCount;
@Schema(description = "点赞次数")
@TableField("like_count")
private Integer likeCount;
@Schema(description = "标签,多个用逗号分隔")
@TableField("tags")
private String tags;
@Schema(description = "附件URL")
@TableField("attachment_url")
private String attachmentUrl;
@Schema(description = "排序权重")
@TableField("sort_order")
private Integer sortOrder;
@Schema(description = "是否置顶0否1是")
@TableField("is_top")
private Boolean isTop;
@Schema(description = "备注")
@TableField("remark")
private String remark;
}