From 7c6e1ba3a8bec22cf2139b72d1bc1ec979addebc Mon Sep 17 00:00:00 2001 From: yuguojian <18126816215> Date: Tue, 14 Jan 2025 15:10:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=97=A5=E5=BF=97=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- log.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/log.go b/log.go index f085213..d709892 100644 --- a/log.go +++ b/log.go @@ -12,10 +12,10 @@ const ( type LogInfo struct { InfoType LogInfoType `json:"info_type"` // 类型 ID int `json:"id"` // ID,订单ID,商品ID,商品SKUID之类的id - Operator interface{} `json:"operator"` // 操作人 + Operator interface{} `json:"operator"` // 操作人,商家用户对象,admin对象或者是系统,关闭订单消费队列等 Title string `json:"title"` // 标题,做什么事情 Param interface{} `json:"param"` // 参数,请求参数,函数、方法就是参数 Result interface{} `json:"result"` // 结果,返回值 - Err error `json:"err"` // 错误 + ErrStr string `json:"err_str"` // 错误信息,json转义error没有自动存储,需要手动转义 At time.Time `json:"at"` // 记录时间 }