From c9d9a680d60722048fec46019b4a7ca36f821c58 Mon Sep 17 00:00:00 2001
From: fangyuan <527392886@qq.com>
Date: 星期五, 18 十一月 2022 11:06:44 +0800
Subject: [PATCH] 资讯相关接口,栏目相关接口2

---
 ycl-platform/src/main/java/com/ycl/entity/NewsInformation.java |   49 ++++++++++++++++++++++++++++++++-----------------
 1 files changed, 32 insertions(+), 17 deletions(-)

diff --git a/ycl-platform/src/main/java/com/ycl/entity/NewsInformation.java b/ycl-platform/src/main/java/com/ycl/entity/NewsInformation.java
index d78cc41..1931ea9 100644
--- a/ycl-platform/src/main/java/com/ycl/entity/NewsInformation.java
+++ b/ycl-platform/src/main/java/com/ycl/entity/NewsInformation.java
@@ -2,41 +2,64 @@
 
 
 import com.baomidou.mybatisplus.extension.activerecord.Model;
+import com.fasterxml.jackson.annotation.JsonFormat;
+
 import java.io.Serializable;
+import java.sql.Date;
+import java.util.List;
 
 /**
  * 璧勮琛�(NewsInformation)琛ㄥ疄浣撶被
  *
  * @author makejava
- * @since 2022-11-17 11:12:41
+ * @since 2022-11-17 11:38:27
  */
 @SuppressWarnings("serial")
 public class NewsInformation extends Model<NewsInformation> {
     //id
-    private Object id;
+    private Integer id;
     //鏍囬
     private String title;
     //鍐呭
     private String content;
     //鍙戝竷鏃堕棿
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
     private Date publishTime;
-    //鏄惁绛炬敹0鏈鏀�1绛炬敹2涓嶉渶瑕佺鏀�
+    //鏄惁闇�瑕佺鏀�0闇�瑕佺鏀�1涓嶉渶瑕佺鏀�
     private Integer isSign;
     //鍒涘缓鏃堕棿
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
     private Date createTime;
     //璀﹀憳id
-    private Object sendTo;
+    private Integer sendTo;
     //鍥剧墖鍦板潃
     private String imageUrl;
     //閮ㄩ棬锛堟満鏋勶級id
-    private String newsDepartmentId;
+    private List<String> departmentId;
+    //鏍忕洰id
+    private List<String> columnId;
 
+    public List<String> getColumnId() {
+        return columnId;
+    }
 
-    public Object getId() {
+    public void setColumnId(List<String> columnId) {
+        this.columnId = columnId;
+    }
+
+    public List<String> getDepartmentId() {
+        return departmentId;
+    }
+
+    public void setDepartmentId(List<String> departmentId) {
+        this.departmentId = departmentId;
+    }
+
+    public Integer getId() {
         return id;
     }
 
-    public void setId(Object id) {
+    public void setId(Integer id) {
         this.id = id;
     }
 
@@ -80,11 +103,11 @@
         this.createTime = createTime;
     }
 
-    public Object getSendTo() {
+    public Integer getSendTo() {
         return sendTo;
     }
 
-    public void setSendTo(Object sendTo) {
+    public void setSendTo(Integer sendTo) {
         this.sendTo = sendTo;
     }
 
@@ -94,14 +117,6 @@
 
     public void setImageUrl(String imageUrl) {
         this.imageUrl = imageUrl;
-    }
-
-    public String getNewsDepartmentId() {
-        return newsDepartmentId;
-    }
-
-    public void setNewsDepartmentId(String newsDepartmentId) {
-        this.newsDepartmentId = newsDepartmentId;
     }
 
     /**

--
Gitblit v1.8.0