From ecad870fe1896c8c3e48506d50bb5818974253bf Mon Sep 17 00:00:00 2001 From: fangyuan <527392886@qq.com> Date: 星期一, 16 一月 2023 11:33:58 +0800 Subject: [PATCH] 机场公安前后端联调内容 --- ycl-platform/src/main/java/com/ycl/entity/NewsInformation.java | 43 +++++++++++++++++++++++++++++++++++++++---- 1 files changed, 39 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..0c8e951 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,12 @@ import com.baomidou.mybatisplus.extension.activerecord.Model; +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.annotations.ApiModelProperty; + import java.io.Serializable; import java.sql.Date; +import java.util.List; /** * 璧勮琛�(NewsInformation)琛ㄥ疄浣撶被 @@ -14,22 +18,53 @@ @SuppressWarnings("serial") public class NewsInformation extends Model<NewsInformation> { //id + @ApiModelProperty("涓婚敭") private Integer id; //鏍囬 + @ApiModelProperty("鏍囬") private String title; //鍐呭 + @ApiModelProperty("鍐呭") private String content; //鍙戝竷鏃堕棿 + @ApiModelProperty("鍙戝竷鏃堕棿") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private Date publishTime; - //鏄惁绛炬敹0鏈鏀�1绛炬敹2涓嶉渶瑕佺鏀� + //鏄惁闇�瑕佺鏀�-0闇�瑕佺鏀�1涓嶉渶瑕佺鏀� + @ApiModelProperty("鏄惁闇�瑕佺鏀�") private Integer isSign; //鍒涘缓鏃堕棿 + @ApiModelProperty("鍒涘缓鏃堕棿") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private Date createTime; //璀﹀憳id - private Object sendTo; + @ApiModelProperty("璀﹀憳id") + private Integer sendTo; //鍥剧墖鍦板潃 + @ApiModelProperty("鍥剧墖鍦板潃") private String imageUrl; + //閮ㄩ棬锛堟満鏋勶級id + @ApiModelProperty("閮ㄩ棬锛堟満鏋勶級id") + private List<String> departmentId; + //鏍忕洰id + @ApiModelProperty("鏍忕洰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 +114,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