docs: 文档一致性检查修复

- 架构文档日志格式示例时间改为亚洲格式 yyyy-MM-dd HH:mm:ss.SSS
- 实施计划日志格式示例同步修正
- 修复 Task 2 中 Step 编号重复(两个 Step 9 → Step 9/10/11)

Made-with: Cursor
This commit is contained in:
bujinyuan
2026-02-28 09:59:41 +08:00
parent 7dcd89c7fc
commit 1e53df7539
2 changed files with 4 additions and 4 deletions

View File

@@ -327,7 +327,7 @@ func TraceMiddleware() gin.HandlerFunc {
```json ```json
{ {
"level": "info", "level": "info",
"timestamp": "2026-02-27T10:30:00.123Z", "ts": "2026-02-27 10:30:00.123",
"trace_id": "abc-123-def-456", "trace_id": "abc-123-def-456",
"module": "auth", "module": "auth",
"func": "service.auth_service.Login", "func": "service.auth_service.Login",

View File

@@ -208,7 +208,7 @@ type LogConfig struct {
**日志输出格式示例(生产环境 JSON** **日志输出格式示例(生产环境 JSON**
```json ```json
{"level":"info","ts":"2026-02-27T10:30:00.123Z","trace_id":"abc-123","module":"auth","func":"service.Login","msg":"用户登录成功","account":"zhangsan","latency_ms":25} {"level":"info","ts":"2026-02-27 10:30:00.123","trace_id":"abc-123","module":"auth","func":"service.Login","msg":"用户登录成功","account":"zhangsan","latency_ms":25}
``` ```
**Step 4: 创建数据库连接** **Step 4: 创建数据库连接**
@@ -298,12 +298,12 @@ func InitializeApp(cfg *config.Config) (*App, error) {
Run: `cd backend/go-service && go mod tidy` Run: `cd backend/go-service && go mod tidy`
**Step 9: 运行验证** **Step 10: 运行验证**
Run: `cd backend/go-service && go run cmd/server/main.go` Run: `cd backend/go-service && go run cmd/server/main.go`
Expected: 服务启动在 :8080访问 /health 返回 200 Expected: 服务启动在 :8080访问 /health 返回 200
**Step 10: Commit** **Step 11: Commit**
```bash ```bash
git add backend/go-service/ git add backend/go-service/