fix: some api bug
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user