You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
test/src/main/java/com/entity/model/NewsModel.java

170 lines
2.9 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.entity.model;
import com.entity.NewsEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
/**
* 公告信息
* 接收传参的实体类
*(实际开发中配合移动端接口开发手动去掉些没用的字段, 后端一般用entity就够用了
* 取自ModelAndView 的model名称
*/
public class NewsModel implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
private Integer id;
/**
* 公告名称
*/
private String newsName;
/**
* 公告图片
*/
private String newsPhoto;
/**
* 公告类型
*/
private Integer newsTypes;
/**
* 公告发布时间
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date insertTime;
/**
* 公告详情
*/
private String newsContent;
/**
* 创建时间 show1 show2 nameShow
*/
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
private Date createTime;
/**
* 获取:主键
*/
public Integer getId() {
return id;
}
/**
* 设置:主键
*/
public void setId(Integer id) {
this.id = id;
}
/**
* 获取:公告名称
*/
public String getNewsName() {
return newsName;
}
/**
* 设置:公告名称
*/
public void setNewsName(String newsName) {
this.newsName = newsName;
}
/**
* 获取:公告图片
*/
public String getNewsPhoto() {
return newsPhoto;
}
/**
* 设置:公告图片
*/
public void setNewsPhoto(String newsPhoto) {
this.newsPhoto = newsPhoto;
}
/**
* 获取:公告类型
*/
public Integer getNewsTypes() {
return newsTypes;
}
/**
* 设置:公告类型
*/
public void setNewsTypes(Integer newsTypes) {
this.newsTypes = newsTypes;
}
/**
* 获取:公告发布时间
*/
public Date getInsertTime() {
return insertTime;
}
/**
* 设置:公告发布时间
*/
public void setInsertTime(Date insertTime) {
this.insertTime = insertTime;
}
/**
* 获取:公告详情
*/
public String getNewsContent() {
return newsContent;
}
/**
* 设置:公告详情
*/
public void setNewsContent(String newsContent) {
this.newsContent = newsContent;
}
/**
* 获取:创建时间 show1 show2 nameShow
*/
public Date getCreateTime() {
return createTime;
}
/**
* 设置:创建时间 show1 show2 nameShow
*/
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
}