fix: some api bug

This commit is contained in:
wwweww
2026-03-31 22:12:06 +08:00
parent c5ff4f0216
commit e7970ac25f
219 changed files with 16195 additions and 2126 deletions
@@ -5,6 +5,7 @@ package models
import (
"juwan-backend/app/wallet/rpc/internal/models/schema"
"juwan-backend/app/wallet/rpc/internal/models/wallet"
"time"
"github.com/shopspring/decimal"
)
@@ -27,4 +28,8 @@ func init() {
walletDescVersion := walletFields[3].Descriptor()
// wallet.DefaultVersion holds the default value on creation for the version field.
wallet.DefaultVersion = walletDescVersion.Default.(int)
// walletDescUpdatedAt is the schema descriptor for updated_at field.
walletDescUpdatedAt := walletFields[4].Descriptor()
// wallet.DefaultUpdatedAt holds the default value on creation for the updated_at field.
wallet.DefaultUpdatedAt = walletDescUpdatedAt.Default.(func() time.Time)
}