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.
gym/ForumVO.java

182 lines
4.5 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.vo;
// 导入MyBatis Plus注解
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
// 导入JSON时间格式注解
import com.fasterxml.jackson.annotation.JsonFormat;
// 导入实体类
import com.entity.ForumEntity;
// 导入日期类
import java.util.Date;
// 导入Spring时间格式注解
import org.springframework.format.annotation.DateTimeFormat;
// 实现序列化接口
import java.io.Serializable;
// 健身论坛手机端接口返回VO精简非必要字段
@TableName("forum")
public class ForumVO implements Serializable {
// 序列化版本UID
private static final long serialVersionUID = 1L;
// 主键ID
@TableField(value = "id")
private Integer id;
// 帖子标题名称
@TableField(value = "forum_name")
private String forumName;
// 关联用户ID普通用户
@TableField(value = "yonghu_id")
private Integer yonghuId;
// 关联教练ID
@TableField(value = "jiaolian_id")
private Integer jiaolianId;
// 关联管理员ID
@TableField(value = "users_id")
private Integer usersId;
// 论坛内容详情
@TableField(value = "forum_content")
private String forumContent;
// 上级帖子ID关联父级讨论
@TableField(value = "super_ids")
private Integer superIds;
// 帖子状态类型0正常/1关闭
@TableField(value = "forum_state_types")
private Integer forumStateTypes;
// 发帖时间(带时区格式化)
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
@TableField(value = "insert_time")
private Date insertTime;
// 最后修改时间(带时区格式化)
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
@TableField(value = "update_time")
private Date updateTime;
// 记录创建时间(用于特定展示场景)
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
@DateTimeFormat
@TableField(value = "create_time")
private Date createTime;
// 获取主键ID
public Integer getId() {
return id;
}
// 设置主键ID
public void setId(Integer id) {
this.id = id;
}
// 获取:帖子标题
public String getForumName() {
return forumName;
}
// 设置:帖子标题
public void setForumName(String forumName) {
this.forumName = forumName;
}
// 获取关联用户ID
public Integer getYonghuId() {
return yonghuId;
}
// 设置关联用户ID
public void setYonghuId(Integer yonghuId) {
this.yonghuId = yonghuId;
}
// 获取教练ID
public Integer getJiaolianId() {
return jiaolianId;
}
// 设置教练ID
public void setJiaolianId(Integer jiaolianId) {
this.jiaolianId = jiaolianId;
}
// 获取管理员ID
public Integer getUsersId() {
return usersId;
}
// 设置管理员ID
public void setUsersId(Integer usersId) {
this.usersId = usersId;
}
// 获取:论坛内容详情
public String getForumContent() {
return forumContent;
}
// 设置:论坛内容详情
public void setForumContent(String forumContent) {
this.forumContent = forumContent;
}
// 获取父级帖子ID
public Integer getSuperIds() {
return superIds;
}
// 设置父级帖子ID
public void setSuperIds(Integer superIds) {
this.superIds = superIds;
}
// 获取:帖子状态类型
public Integer getForumStateTypes() {
return forumStateTypes;
}
// 设置:帖子状态类型
public void setForumStateTypes(Integer forumStateTypes) {
this.forumStateTypes = forumStateTypes;
}
// 获取:发帖时间
public Date getInsertTime() {
return insertTime;
}
// 设置:发帖时间
public void setInsertTime(Date insertTime) {
this.insertTime = insertTime;
}
// 获取:最后修改时间
public Date getUpdateTime() {
return updateTime;
}
// 设置:最后修改时间
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
// 获取:创建时间(展示用)
public Date getCreateTime() {
return createTime;
}
// 设置:创建时间(展示用)
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
}