diff --git a/docs/architecture/system-architecture.md b/docs/architecture/system-architecture.md index 09d7562..beb80f2 100644 --- a/docs/architecture/system-architecture.md +++ b/docs/architecture/system-architecture.md @@ -327,7 +327,7 @@ func TraceMiddleware() gin.HandlerFunc { ```json { "level": "info", - "timestamp": "2026-02-27T10:30:00.123Z", + "ts": "2026-02-27 10:30:00.123", "trace_id": "abc-123-def-456", "module": "auth", "func": "service.auth_service.Login", diff --git a/docs/plans/2026-02-27-phase1-foundation-and-auth.md b/docs/plans/2026-02-27-phase1-foundation-and-auth.md index 26e72f2..ab388e8 100644 --- a/docs/plans/2026-02-27-phase1-foundation-and-auth.md +++ b/docs/plans/2026-02-27-phase1-foundation-and-auth.md @@ -208,7 +208,7 @@ type LogConfig struct { **日志输出格式示例(生产环境 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: 创建数据库连接** @@ -298,12 +298,12 @@ func InitializeApp(cfg *config.Config) (*App, error) { Run: `cd backend/go-service && go mod tidy` -**Step 9: 运行验证** +**Step 10: 运行验证** Run: `cd backend/go-service && go run cmd/server/main.go` Expected: 服务启动在 :8080,访问 /health 返回 200 -**Step 10: Commit** +**Step 11: Commit** ```bash git add backend/go-service/