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 = "reply") // 指定该实体类对应的数据库表名为"reply" public class Reply extends BaseEntity { // 回复者的用户ID @JSONField(name = "user_id") // 指定JSON序列化时的字段名 private BigInteger userId; // 被回复的用户ID @JSONField(name = "to_uid") // 指定JSON序列化时的字段名 private BigInteger toUid; // 所属评论的ID @JSONField(name = "remark_id") // 指定JSON序列化时的字段名 private BigInteger remarkId; // 回复时间 private Timestamp time; // 回复内容 private String content; // 回复的点赞数 private long love; // 回复的收藏数 private long collect; /** * 获取回复时间 * @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 getToUid() { return toUid; } /** * 设置被回复的用户ID * @param toUid 被回复的用户ID */ public void setToUid(BigInteger toUid) { this.toUid = toUid; } /** * 获取所属评论的ID * @return 评论ID */ public BigInteger getRemarkId() { return remarkId; } /** * 设置所属评论的ID * @param remarkId 评论ID */ public void setRemarkId(BigInteger remarkId) { this.remarkId = remarkId; } /** * 获取回复内容 * @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; } }