From 179c4d64313c9b7572778da4aaaf6c6584fe457d Mon Sep 17 00:00:00 2001
From: mitao <2763622819@qq.com>
Date: 星期二, 20 五月 2025 23:48:08 +0800
Subject: [PATCH] 修改文件上传类型限制

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComActDynDO.java |   52 +++++++++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 47 insertions(+), 5 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComActDynDO.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComActDynDO.java
index 3eda6a3..d1fcf9c 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComActDynDO.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComActDynDO.java
@@ -1,10 +1,12 @@
 package com.panzhihua.service_community.model.dos;
 
-import com.baomidou.mybatisplus.annotation.*;
-import lombok.Data;
-
 import java.io.Serializable;
 import java.util.Date;
+
+import com.baomidou.mybatisplus.annotation.*;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
 
 /**
  * @program: springcloud_k8s_panzhihuazhihuishequ
@@ -20,7 +22,7 @@
     /**
      * 自增id
      */
-    @TableId(type = IdType.AUTO)
+    @TableId(type = IdType.ASSIGN_ID)
     private Long id;
 
     /**
@@ -56,7 +58,7 @@
     /**
      * 社区id
      */
-    private Long communityId;
+    private String communityId;
     /**
      * 动态内容富文本
      */
@@ -64,5 +66,45 @@
     /**
      * 封面图
      */
+    @TableField(value = "cover", updateStrategy = FieldStrategy.IGNORED)
     private String cover;
+
+    /**
+     * 社区动态分类id
+     */
+    private String type;
+
+    /**
+     * 封面模式:1-小图展示 2-大图展示
+     */
+    private Integer coverMode;
+
+    /**
+     * 跳转链接
+     */
+    private String jumpUrl;
+
+    /**
+     * 跳转状态
+     */
+    private Integer jumpType;
+
+    /**
+     * 类型(1.社区动态 2.党务公开 3.花城资讯)
+     */
+    private Integer category;
+
+    private Integer readNum;
+
+    private Date releaseTime;
+    /**
+     * 广告是否置顶
+     * */
+    private Integer onTop;
+
+    /**
+     * 图片链接
+     * */
+    private String imageUrl;
+
 }

--
Gitblit v1.7.1