refactor: 目录结构重构和清理 (v2.0.2)
新增目录: - docs/legacy/ - 废弃文档归档 - scripts/ - 管理脚本和测试脚本 - build/ - 构建输出目录 文件移动: - GO_REFACTOR_PROGRESS.md -> docs/legacy/ - OPTIMIZATION_REPORT.md -> docs/legacy/ - sms-receiver-go-ctl.sh -> scripts/ - test_api.sh -> scripts/ 改进: - 更新 .gitignore 忽略运行时文件 - 新增 CHANGELOG.md 独立变更日志 - 更新 README.md 目录结构说明 - 更新 Makefile 版本号到 v2.0.2 - 更新管理脚本路径引用 清理: - 从仓库中移除二进制文件 - 从仓库中移除数据库文件 - 从仓库中移除日志文件 - 从仓库中移除配置文件
This commit is contained in:
11
scripts/test_api.sh
Executable file
11
scripts/test_api.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
# 测试 Go 版本 API
|
||||
|
||||
echo "测试 API /api/messages..."
|
||||
curl -s http://127.0.0.1:28001/api/messages | python3 -m json.tool | head -30
|
||||
|
||||
echo -e "\n\n测试 API /api/statistics..."
|
||||
curl -s http://127.0.0.1:28001/api/statistics | python3 -m json.tool
|
||||
|
||||
echo -e "\n\n测试首页 / (先登录获取 cookie)"
|
||||
# 这里需要手动登录测试
|
||||
Reference in New Issue
Block a user