feat(消息): 添加回复ID字段支持消息回复功能

在Message和MessageDto中添加replyid字段,支持消息回复功能
添加删除所有评论的API端点
重构消息控制器方法顺序
```

```msg
feat(文章): 实现文章浏览量增加功能

添加incrementViewCount方法用于增加文章浏览量
在文章实体中添加likes字段记录点赞数
更新API文档说明新增字段
```

```msg
chore: 移除数据初始化类

注释掉CategoryDataInit和MessageDataInit类
这些初始化功能将由其他方式实现
This commit is contained in:
qingfeng1121
2025-10-22 13:28:30 +08:00
parent 848b13506c
commit f53e251d46
15 changed files with 3227 additions and 1175 deletions

View File

@@ -318,6 +318,7 @@ GET /api/messages
"content": "留言内容",
"createdAt": "2023-01-01T10:00:00",
"parentid": null, // 父留言IDnull表示主留言
"replyid": null, // 回复留言IDnull表示无回复
"articleid": null // 关联的文章IDnull表示无关联
},
// 更多留言...