refactor: 整理项目根目录结构

整理内容:
- 删除 60+ 临时测试输出文件 (*.txt)
- 移动二进制文件到 bin/ 目录
- 移动 Shell 脚本到 scripts/ 目录
  - scripts/dev/: check_gitea.sh, check_sub2api.sh, run_tests.sh
  - scripts/deploy/: deploy_*.sh, simple_deploy.sh
  - scripts/ops/: fix_nginx.sh, fix_ssl.sh, install_docker.sh
  - scripts/test/: test_*.sh, test_*.bat
- 移动批处理文件到 scripts/
- 移动 Python 脚本到 tools/
- 清理临时日志文件

保留根目录必要文件:
- go.mod, go.sum, go.work
- Makefile, docker-compose.yml
- .env.example, .gitignore
- README.md, AGENTS.md, DEPLOY_GUIDE.md

验证: go build ./... && go test ./... 通过
This commit is contained in:
2026-04-07 18:10:36 +08:00
parent 5dbb530b76
commit 5b6bd93179
152 changed files with 8775 additions and 4084 deletions

View File

@@ -0,0 +1,24 @@
# 2026-04-07 工作日志
## PM偏差分析报告 — 全面PRD实施偏差分析
- **输出**: `PM_DEVIATION_ANALYSIS_REPORT.md` (Artifact)
- **核心发现**:
- 社交登录9个平台Provider代码完整(微信259行/QQ203行/支付宝257行等),但**前端LoginPage无任何社交登录入口按钮**
- 项目整体偏差率28%(69项PRD需求中15项为"假完成"/骨架状态)
- **根因**: PRD无优先级分级 + DoD标准缺失("代码写完=完成") + Sprint从未排入社交登录端到端
- 技术质量高(SRE 8.0/10, 代码审查10/10)但产品可用性有盲区
- **PM方法论升级建议**:
- 建立Definition of Done(含Demoable要求)
- 引入User Story + AC驱动的任务分解
- 建立需求追溯矩阵(RTM)
- 引入Sprint Demo制度
- PRD重新分级(P0/P1/P2/Optional)
- **关键行动**: 社交登录前端补齐需~6天工作量应立即纳入下一Sprint
- **修复 F-01**: `scale_test.go` 补充 `"github.com/user-management-system/internal/pagination"` 导入
- **修复 F-02**: `scale_test.go` 补充缺失的 `ptrInt64()` 辅助函数
- **修复 F-03**: LoginLog 测试批次大小 5000→50SQLite 变量数上限 999
- **修复 F-04**: LoginLog 测试数据量 500K→100K避免全遍历超时 15min
- **测试通过**:
- TestScale_LL_001C_CursorPagination: ✅ PASS (100K条, 2000页, P99=53.17ms)
- TestScale_OPLOG_001C_OperationLogCursorPagination: ✅ PASS (100K条, 2000页, P99=55.55ms)
- **完整性审计**: 全栈 6 层覆盖,综合评分 4.8/5