From 1e53df75397a8a73b7a603c2336a699d53989628 Mon Sep 17 00:00:00 2001 From: bujinyuan Date: Sat, 28 Feb 2026 09:59:41 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=96=87=E6=A1=A3=E4=B8=80=E8=87=B4?= =?UTF-8?q?=E6=80=A7=E6=A3=80=E6=9F=A5=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 架构文档日志格式示例时间改为亚洲格式 yyyy-MM-dd HH:mm:ss.SSS - 实施计划日志格式示例同步修正 - 修复 Task 2 中 Step 编号重复(两个 Step 9 → Step 9/10/11) Made-with: Cursor --- docs/architecture/system-architecture.md | 2 +- docs/plans/2026-02-27-phase1-foundation-and-auth.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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/