From a311bddc25336cab1341f5e1524f40cc7664ee88 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Wed, 29 Jan 2025 02:25:45 +0800 Subject: [PATCH] :bug: Fix type name issue --- pkg/internal/models/wallet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/internal/models/wallet.go b/pkg/internal/models/wallet.go index eeca71e..b8866e2 100644 --- a/pkg/internal/models/wallet.go +++ b/pkg/internal/models/wallet.go @@ -9,7 +9,7 @@ import ( type Wallet struct { cruda.BaseModel - Balance decimal.Decimal `json:"amount" sql:"type:decimal(30,2);"` + Balance decimal.Decimal `json:"balance" sql:"type:decimal(30,2);"` Password string `json:"password"` AccountID uint `json:"account_id"` }