diff --git a/docs/architecture/system-architecture.md b/docs/architecture/system-architecture.md index beb80f2..00ebff3 100644 --- a/docs/architecture/system-architecture.md +++ b/docs/architecture/system-architecture.md @@ -327,7 +327,7 @@ func TraceMiddleware() gin.HandlerFunc { ```json { "level": "info", - "ts": "2026-02-27 10:30:00.123", + "ts": "2026-02-27 10:30:00", "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 ab388e8..3ad3637 100644 --- a/docs/plans/2026-02-27-phase1-foundation-and-auth.md +++ b/docs/plans/2026-02-27-phase1-foundation-and-auth.md @@ -203,12 +203,12 @@ type LogConfig struct { **日志输出格式示例(开发环境):** ``` -2026-02-27 10:30:00.123 INFO [abc-123] auth | service.Login | 用户登录成功 | account=zhangsan | latency=25ms +2026-02-27 10:30:00 INFO [abc-123] auth | service.Login | 用户登录成功 | account=zhangsan | latency=25ms ``` **日志输出格式示例(生产环境 JSON):** ```json -{"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} +{"level":"info","ts":"2026-02-27 10:30:00","trace_id":"abc-123","module":"auth","func":"service.Login","msg":"用户登录成功","account":"zhangsan","latency_ms":25} ``` **Step 4: 创建数据库连接**