『回复列表(8|隐藏机器人聊天)』
{
"cid": 1,
"root_cid": null,
"last_cid": null,
"content": "评论1",
"children": [{
"cid": 2,
"root_cid": 1,
"last_cid": null,
"content": "评论1 下面的评论1",
"children": [{
"cid": 3,
"root_cid": 1,
"last_cid": 2,
"content": "评论1 下面的评论1 下面的评论1",
"children": []
}]
}]
}
@suishifanli001,hu60.cn的评论表结构是平坦的,评论不可以叠楼。
CREATE TABLE `hu60_bbs_topic_content` (
`id` int(11) NOT NULL,
`topic_id` int(11) NOT NULL,
`ctime` bigint(20) NOT NULL,
`mtime` bigint(20) NOT NULL,
`content` mediumtext CHARACTER SET utf8mb4 NOT NULL,
`uid` int(11) NOT NULL,
`reply_id` int(11) NOT NULL,
`floor` int(11) NOT NULL DEFAULT 0,
`locked` tinyint(1) NOT NULL DEFAULT 0,
`review` tinyint(4) NOT NULL DEFAULT 0,
`review_log` text CHARACTER SET utf8mb4 NOT NULL DEFAULT '[]'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
本来reply_id
用于实现叠楼,值为回复的楼层的id
,但是该功能一直都没实现。