From cb5ddf074d60b72e35ee4bafaec95530f53d1839 Mon Sep 17 00:00:00 2001
From: luo <2855143437@qq.com>
Date: 星期六, 09 十二月 2023 08:59:34 +0800
Subject: [PATCH] 12.9

---
 guns-management/src/main/java/com/stylefeng/guns/modular/system/model/EncyclopedicKnowledge.java |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/guns-management/src/main/java/com/stylefeng/guns/modular/system/model/EncyclopedicKnowledge.java b/guns-management/src/main/java/com/stylefeng/guns/modular/system/model/EncyclopedicKnowledge.java
index 5458cbb..0999da5 100644
--- a/guns-management/src/main/java/com/stylefeng/guns/modular/system/model/EncyclopedicKnowledge.java
+++ b/guns-management/src/main/java/com/stylefeng/guns/modular/system/model/EncyclopedicKnowledge.java
@@ -4,6 +4,8 @@
 import com.baomidou.mybatisplus.annotations.TableId;
 import com.baomidou.mybatisplus.annotations.TableName;
 import com.baomidou.mybatisplus.enums.IdType;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import io.swagger.annotations.ApiModelProperty;
 import lombok.Data;
 
 import java.util.Date;
@@ -19,26 +21,31 @@
      * 主键
      */
     @TableId(value = "id", type = IdType.AUTO)
+    @ApiModelProperty(value = "id", required = false)
     private Integer id;
     /**
      * 数据类型id
      */
     @TableField("sys_data_type_id")
+    @ApiModelProperty(value = "类别", required = true)
     private Integer sysDataTypeId;
     /**
      * 标题
      */
     @TableField("title")
+    @ApiModelProperty(value = "标题", required = true)
     private String title;
     /**
      * 列表图片
      */
     @TableField("img_url")
+    @ApiModelProperty(value = "图片", required = true)
     private String imgUrl;
     /**
      * 富文本内容
      */
     @TableField("content")
+    @ApiModelProperty(value = "内容", required = true)
     private String content;
     /**
      * 纯文本内容
@@ -54,5 +61,14 @@
      * 添加时间
      */
     @TableField("insert_time")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
     private Date insertTime;
+    @TableField("create_by")
+    private Integer createBy;
+
+    @TableField(exist = false)
+    private String createByName;
+
+    @TableField(exist = false)
+    private String type;
 }

--
Gitblit v1.7.1