From 69ee7c605579c009ee3c087fa265619ba55155f6 Mon Sep 17 00:00:00 2001 From: fangyuan <527392886@qq.com> Date: 星期五, 18 十一月 2022 10:57:33 +0800 Subject: [PATCH] 资讯相关接口,栏目相关接口 --- ycl-platform/src/main/java/com/ycl/entity/NewsInformation.java | 32 ++++++++++++++++++++++++++++---- 1 files changed, 28 insertions(+), 4 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 4de5a1d..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,8 +2,11 @@ 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)琛ㄥ疄浣撶被 @@ -20,16 +23,37 @@ //鍐呭 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 List<String> departmentId; + //鏍忕洰id + private List<String> columnId; + public List<String> getColumnId() { + return columnId; + } + + 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; @@ -79,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; } -- Gitblit v1.8.0