From 91f65064ff7b8e9dbb634696898180a26e1b2d73 Mon Sep 17 00:00:00 2001 From: yuguojian <18126816215> Date: Wed, 16 Jul 2025 10:16:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- log/log.go | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/log/log.go b/log/log.go index 19b7912..8b6db2f 100644 --- a/log/log.go +++ b/log/log.go @@ -49,14 +49,18 @@ type LogInfo struct { Result interface{} `json:"result,omitempty"` // 结果,返回值,传指针,如果是报错,传err } -type param struct { - Type string `json:"type"` - Value interface{} `json:"value"` +type TempGLog struct { + Time string `json:"Time"` + TraceId string `json:"TraceId"` + Level string `json:"Level"` + Content string `json:"Content"` } -type result struct { - Type string `json:"type"` - Value interface{} `json:"value"` +type GLog struct { + Time string `json:"Time"` + TraceId string `json:"TraceId"` + Level string `json:"Level"` + Content *LogInfo `json:"Content"` } func ZapDebug(logger *zap.Logger, log *LogInfo) {