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/Remark.java

151 lines
2.7 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.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;
/**
* @description 评论实体类,用于表示用户对朋友圈的评论信息
*/
@Table(name = "remark") // 指定该实体类对应的数据库表名为"remark"
public class Remark extends BaseEntity {
// 用户ID表示评论者
@JSONField(name = "user_id") // 指定JSON序列化时的字段名
private BigInteger userId;
// 朋友圈ID表示评论所属的朋友圈
@JSONField(name = "moment_id") // 指定JSON序列化时的字段名
private BigInteger momentId;
// 评论内容
private String content;
// 评论时间
private Timestamp time;
// 点赞数
private Long love;
// 收藏数
private Long collect;
// 回复数
private Long reply;
/**
* 获取评论时间
* @return 评论时间
*/
public Timestamp getTime() {
return time;
}
/**
* 设置评论时间
* @param time 评论时间
*/
public void setTime(Timestamp time) {
this.time = time;
}
/**
* 获取评论者的用户ID
* @return 用户ID
*/
public BigInteger getUserId() {
return userId;
}
/**
* 设置评论者的用户ID
* @param userId 用户ID
*/
public void setUserId(BigInteger userId) {
this.userId = userId;
}
/**
* 获取评论所属的朋友圈ID
* @return 朋友圈ID
*/
public BigInteger getMomentId() {
return momentId;
}
/**
* 设置评论所属的朋友圈ID
* @param momentId 朋友圈ID
*/
public void setMomentId(BigInteger momentId) {
this.momentId = momentId;
}
/**
* 获取评论内容
* @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 getCollect() {
return collect;
}
/**
* 设置评论的收藏数
* @param collect 收藏数
*/
public void setCollect(Long collect) {
this.collect = collect;
}
/**
* 获取评论的回复数
* @return 回复数
*/
public Long getReply() {
return reply;
}
/**
* 设置评论的回复数
* @param reply 回复数
*/
public void setReply(Long reply) {
this.reply = reply;
}
}