From 396afbdb37167eaa9b32a173e75b18cfb7744c4c Mon Sep 17 00:00:00 2001 From: vipg Date: Fri, 14 Nov 2025 18:12:11 +0800 Subject: [PATCH] add --- backend/futures_trade_record/src/logic/variety_create.go | 2 +- backend/futures_trade_record/src/main.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/futures_trade_record/src/logic/variety_create.go b/backend/futures_trade_record/src/logic/variety_create.go index 13fe624..e3451c7 100644 --- a/backend/futures_trade_record/src/logic/variety_create.go +++ b/backend/futures_trade_record/src/logic/variety_create.go @@ -47,7 +47,7 @@ func CreateVarietyHandler(c *gin.Context) { var req CreateVarietyRequest // 绑定并验证请求参数(包含新增的tick和tick_price) if err := c.ShouldBindJSON(&req); err != nil { - zap.L().Warn("⚠️ 请求参数验证失败", + zap.L().Warn("🔴 请求参数验证失败", zap.String("req_id", reqID), zap.Error(err), zap.Any("request_body", c.Request.Body), diff --git a/backend/futures_trade_record/src/main.go b/backend/futures_trade_record/src/main.go index 3da4845..63848e1 100644 --- a/backend/futures_trade_record/src/main.go +++ b/backend/futures_trade_record/src/main.go @@ -17,10 +17,10 @@ func main() { // 初始化日志配置 logger.Init() // 记录服务初始化日志 - zap.L().Info("🚀 用户服务初始化") + zap.L().Info("🟢 用户服务初始化") // 记录数据库初始化开始日志 - zap.L().Info("⌛️ 数据库初始化开始") + zap.L().Info("🟢 数据库初始化开始") // 初始化数据库连接 db.Init() // 程序退出时关闭数据库连接(defer确保在函数退出前执行)