重构:简化查询接口

- RecordQuery.QueryOldest 和 QueryNewest 不再接收 startIdx/endIdx 参数
- 查询方法返回纯 Record 列表,状态判断移到调用方
- TopicProcessor 的查询方法负责添加状态信息
- 更新所有测试文件以适配新接口
This commit is contained in:
2025-10-04 00:10:14 +08:00
parent a421ca1d85
commit 5c028a55b3
8 changed files with 168 additions and 208 deletions

2
.gitignore vendored
View File

@@ -22,6 +22,8 @@ test_*
# 示例程序编译产物
example/webapp/webapp
example/webapp/logs/
example/
examples/
# Go 编译产物
*.so