Forráskód Böngészése

优化文章接口 新增字段内容类型

fangqing 1 hónapja
szülő
commit
7550b3aa52

+ 8 - 1
ruoyi-generator/src/main/java/com/ruoyi/generator/domain/Community/CommunityArticle.java

@@ -226,10 +226,17 @@ public class CommunityArticle implements Serializable {
     @ApiModelProperty("文章类型")
     private Integer articleType;
 
+    /**
+     * 内容类型
+     */
+    @ApiModelProperty("内容类型") // 0动态,1小说 2视频
+    private Integer contentType;
+
+
     /**
      * 置顶标识
      */
-    @ApiModelProperty("文章类型")
+    @ApiModelProperty("置顶标识")
     private Boolean isTop;
 
 

+ 8 - 0
ruoyi-generator/src/main/java/com/ruoyi/generator/vo/CommunityArticleVo.java

@@ -168,4 +168,12 @@ public class CommunityArticleVo extends BaseEntity implements Serializable {
     @TableField("article_type")
     private Integer articleType ;
 
+
+
+    /**
+     * 内容类型
+     */
+    @ApiModelProperty("内容类型") // 0动态,1小说 2视频
+    @TableField("content_type")
+    private Integer contentType;
 }

+ 1 - 0
ruoyi-generator/src/main/resources/mapper/community/ArticleMapper.xml

@@ -117,6 +117,7 @@
         a.is_raffle,
         a.is_download,
         a.article_type,
+        a.content_type,
         COALESCE((
         SELECT
         JSON_ARRAYAGG(