docs: update README and cleanup miscellaneous files

This commit is contained in:
2026-02-12 19:20:31 +08:00
parent d51e2dc500
commit 8afed25543
3 changed files with 7 additions and 1 deletions

2
.gitignore vendored
View File

@@ -26,7 +26,9 @@ go.work
# Data files # Data files
data/*.sqlite data/*.sqlite
**/data/*.sqlite
tests/data/ tests/data/
services/data/
# Temporary files # Temporary files
*.tmp *.tmp

View File

@@ -35,6 +35,10 @@ backend-go/
│ └── serials_controller.go # 序列号管理接口 │ └── serials_controller.go # 序列号管理接口
├── database/ # 数据库连接和操作 ├── database/ # 数据库连接和操作
│ └── database.go # 数据库初始化、连接池配置 │ └── database.go # 数据库初始化、连接池配置
├── docs/ # Swagger API 文档(自动生成)
│ ├── docs.go # Swagger 文档定义
│ ├── swagger.json # Swagger JSON 格式文档
│ └── swagger.yaml # Swagger YAML 格式文档
├── logger/ # 日志管理 ├── logger/ # 日志管理
│ └── logger.go # 结构化日志(使用 Zap │ └── logger.go # 结构化日志(使用 Zap
├── middleware/ # 中间件层 ├── middleware/ # 中间件层
@@ -50,7 +54,7 @@ backend-go/
│ └── services_test.go # 服务层单元测试 │ └── services_test.go # 服务层单元测试
├── tests/ # 集成测试 ├── tests/ # 集成测试
│ └── main_test.go # 端到端测试 │ └── main_test.go # 端到端测试
├── data/ # 数据目录 (SQLite 数据库存储) ├── data/ # 数据目录SQLite 数据库存储位置)
├── main.go # 应用程序入口 ├── main.go # 应用程序入口
├── go.mod # Go 模块依赖 ├── go.mod # Go 模块依赖
├── go.sum # Go 模块校验和 ├── go.sum # Go 模块校验和

Binary file not shown.