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.
chat-room/Moment.java

189 lines
3.8 KiB

package com.hyc.wechat.model.po;
import com.alibaba.fastjson.annotation.JSONField;
import com.hyc.wechat.dao.annotation.Table;
import com.hyc.wechat.model.po.abs.BaseEntity;
import java.math.BigInteger;
import java.sql.Timestamp;
/**
* @author <a href="mailto:kobe524348@gmail.com">黄钰朝</a>
* @description 朋友圈实体类,用于表示用户在朋友圈发布的状态信息
* @date 2019-05-07 11:36
*/
@Table(name = "moment") // 指定该实体类对应的数据库表名为"moment"
public class Moment extends BaseEntity {
// 朋友圈所有者的用户ID
@JSONField(name = "owner_id")
private BigInteger ownerId;
// 朋友圈的内容文本
private String content;
// 朋友圈的照片URL
private String photo;
// 朋友圈发布的时间
private Timestamp time;
// 朋友圈获得点赞的数量
private Long love;
// 朋友圈的评论数量
private Long remark;
// 朋友圈被分享的次数
private Long share;
// 朋友圈被查看的次数
private Long view;
// 朋友圈被收藏的次数
private Long collect;
/**
* 获取朋友圈发布的时间
* @return 发布时间
*/
public Timestamp getTime() {
return time;
}
/**
* 设置朋友圈发布的时间
* @param time 发布时间
*/
public void setTime(Timestamp time) {
this.time = time;
}
/**
* 获取朋友圈照片的URL
* @return 照片URL
*/
public String getPhoto() {
return photo;
}
/**
* 设置朋友圈照片的URL
* @param photo 照片URL
*/
public void setPhoto(String photo) {
this.photo = photo;
}
/**
* 获取朋友圈所有者的用户ID
* @return 所有者用户ID
*/
public BigInteger getOwnerId() {
return ownerId;
}
/**
* 设置朋友圈所有者的用户ID
* @param ownerId 所有者用户ID
*/
public void setOwnerId(BigInteger ownerId) {
this.ownerId = ownerId;
}
/**
* 获取朋友圈的内容文本
* @return 内容文本
*/
public String getContent() {
return content;
}
/**
* 设置朋友圈的内容文本
* @param content 内容文本
*/
public void setContent(String content) {
this.content = content;
}
/**
* 获取朋友圈获得点赞的数量
* @return 点赞数量
*/
public Long getLove() {
return love;
}
/**
* 设置朋友圈获得点赞的数量
* @param love 点赞数量
*/
public void setLove(Long love) {
this.love = love;
}
/**
* 获取朋友圈的评论数量
* @return 评论数量
*/
public Long getRemark() {
return remark;
}
/**
* 设置朋友圈的评论数量
* @param remark 评论数量
*/
public void setRemark(Long remark) {
this.remark = remark;
}
/**
* 获取朋友圈被分享的次数
* @return 分享次数
*/
public Long getShare() {
return share;
}
/**
* 设置朋友圈被分享的次数
* @param share 分享次数
*/
public void setShare(Long share) {
this.share = share;
}
/**
* 获取朋友圈被查看的次数
* @return 查看次数
*/
public Long getView() {
return view;
}
/**
* 设置朋友圈被查看的次数
* @param view 查看次数
*/
public void setView(Long view) {
this.view = view;
}
/**
* 获取朋友圈被收藏的次数
* @return 收藏次数
*/
public Long getCollect() {
return collect;
}
/**
* 设置朋友圈被收藏的次数
* @param collect 收藏次数
*/
public void setCollect(Long collect) {
this.collect = collect;
}
}