1
0
Files
light-blog/src/main/java/xyz/fortern/pojo/Reply.java
2024-03-28 04:24:35 +08:00

73 lines
1.2 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package xyz.fortern.pojo;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Reply {
/**
* 主键id
*/
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
/**
* 该回复所属的评论的id
*/
@TableField("cid")
private int cid;
/**
* 用户id
*/
@TableField("uid")
private int uid;
/**
* 发表该回复的用户的简单信息
*/
@TableField(exist = false)
private User.SimpleUser simpleUserFrom;
/**
* 被回复者的简单信息
*/
@TableField(exist = false)
private User.SimpleUser simpleUserTo;
/**
* 该回复在当前评论下的楼层
*/
@TableField("floor")
private int floor;
/**
* 发表时间
*/
@TableField("time")
private Date time;
/**
* 回复的那条回复的id如果为空表示在回复层主
*/
@TableField("rid")
private Integer rid;
/**
* 回复的具体内容
*/
@TableField("content")
private String content;
}