From 2ca627ff7276980c72647c0baf0a5bd984d30fcb Mon Sep 17 00:00:00 2001 From: ZhouYongyou <128128010+zhouyongyou@users.noreply.github.com> Date: Mon, 3 Nov 2025 20:55:41 +0800 Subject: [PATCH] fix(api): correct variable name from traderRecord to trader Fixed compilation error caused by variable name mismatch: - Line 404: defined as 'trader' - Line 425: was using 'traderRecord' (undefined) This aligns with upstream dev branch naming convention. --- api/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/server.go b/api/server.go index d7f0512d..ee255fe3 100644 --- a/api/server.go +++ b/api/server.go @@ -437,7 +437,7 @@ func (s *Server) handleCreateTrader(c *gin.Context) { } // 保存到数据库 - err = s.database.CreateTrader(traderRecord) + err = s.database.CreateTrader(trader) if err != nil { c.JSON(http.StatusInternalServerError, gin.H{"error": fmt.Sprintf("创建交易员失败: %v", err)}) return