diff --git a/src/main/java/com/entity/vo/MessagesVO.java b/src/main/java/com/entity/vo/MessagesVO.java new file mode 100644 index 0000000..efe85c2 --- /dev/null +++ b/src/main/java/com/entity/vo/MessagesVO.java @@ -0,0 +1,90 @@ +package com.entity.vo; + +import com.entity.MessagesEntity; + +import com.baomidou.mybatisplus.annotations.TableName; +import java.util.Date; +import org.springframework.format.annotation.DateTimeFormat; + +import com.fasterxml.jackson.annotation.JsonFormat; +import java.io.Serializable; + + +/** + * 留言板 + * 手机端接口返回实体辅助类 + * (主要作用去除一些不必要的字段) + * @author + * @email + */ +public class MessagesVO implements Serializable { + private static final long serialVersionUID = 1L; + + + /** + * 用户名 + */ + + private String username; + + /** + * 留言内容 + */ + + private String content; + + /** + * 回复内容 + */ + + private String reply; + + + /** + * 设置:用户名 + */ + + public void setUsername(String username) { + this.username = username; + } + + /** + * 获取:用户名 + */ + public String getUsername() { + return username; + } + + + /** + * 设置:留言内容 + */ + + public void setContent(String content) { + this.content = content; + } + + /** + * 获取:留言内容 + */ + public String getContent() { + return content; + } + + + /** + * 设置:回复内容 + */ + + public void setReply(String reply) { + this.reply = reply; + } + + /** + * 获取:回复内容 + */ + public String getReply() { + return reply; + } + +} diff --git a/src/main/java/com/entity/vo/NewsVO.java b/src/main/java/com/entity/vo/NewsVO.java new file mode 100644 index 0000000..e50e940 --- /dev/null +++ b/src/main/java/com/entity/vo/NewsVO.java @@ -0,0 +1,90 @@ +package com.entity.vo; + +import com.entity.NewsEntity; + +import com.baomidou.mybatisplus.annotations.TableName; +import java.util.Date; +import org.springframework.format.annotation.DateTimeFormat; + +import com.fasterxml.jackson.annotation.JsonFormat; +import java.io.Serializable; + + +/** + * 公告信息 + * 手机端接口返回实体辅助类 + * (主要作用去除一些不必要的字段) + * @author + * @email + */ +public class NewsVO implements Serializable { + private static final long serialVersionUID = 1L; + + + /** + * 简介 + */ + + private String introduction; + + /** + * 图片 + */ + + private String picture; + + /** + * 内容 + */ + + private String content; + + + /** + * 设置:简介 + */ + + public void setIntroduction(String introduction) { + this.introduction = introduction; + } + + /** + * 获取:简介 + */ + public String getIntroduction() { + return introduction; + } + + + /** + * 设置:图片 + */ + + public void setPicture(String picture) { + this.picture = picture; + } + + /** + * 获取:图片 + */ + public String getPicture() { + return picture; + } + + + /** + * 设置:内容 + */ + + public void setContent(String content) { + this.content = content; + } + + /** + * 获取:内容 + */ + public String getContent() { + return content; + } + +} diff --git a/src/main/resources/front.front/pages/fangwuleixing/add.html b/src/main/resources/front.front/pages/fangwuleixing/add.html new file mode 100644 index 0000000..81dadc3 --- /dev/null +++ b/src/main/resources/front.front/pages/fangwuleixing/add.html @@ -0,0 +1,296 @@ + + + +
+ + +