From a48afa14b7140f32874667a1e9206e5bd6f83795 Mon Sep 17 00:00:00 2001 From: yuguojian <18126816215> Date: Thu, 15 May 2025 10:52:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=97=A5=E5=BF=97=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E4=BA=BA=E7=B1=BB=E5=9E=8B=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- log/log.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/log/log.go b/log/log.go index db95e4d..dfeb271 100644 --- a/log/log.go +++ b/log/log.go @@ -30,16 +30,16 @@ type LogInfo struct { Title string `json:"title"` // 必填,标题,做什么事情 Param interface{} `json:"param,omitempty"` // 参数,请求参数,传指针 Result interface{} `json:"result,omitempty"` // 结果,返回值,传指针,如果是报错,传err - ErrStr string `json:"err_str,omitempty"` // 错误信息 + ErrStr string `json:"err_str,omitempty"` // 错误信息,不用传入,自动记录 At string `json:"at"` // 记录时间,不用传入,自动记录 } type OperatorType = string const ( - AdminOperatorType OperatorType = "admin" // 管理员 - MerchantOperatorType OperatorType = "merchant" // 商家 - UserOperatorType OperatorType = "user" // 用户 + OperatorTypeAdmin OperatorType = "admin" // 管理员 + OperatorTypeMerchant OperatorType = "merchant" // 商家 + OperatorTypeUser OperatorType = "user" // 用户 ) type Operator struct {