refactor: Update topup amount type from int to int64 for improved precision

This commit is contained in:
1808837298@qq.com
2025-03-08 21:59:18 +08:00
parent 68097c132d
commit 5a10ebd384
2 changed files with 10 additions and 10 deletions

View File

@@ -3,7 +3,7 @@ package model
type TopUp struct {
Id int `json:"id"`
UserId int `json:"user_id" gorm:"index"`
Amount int `json:"amount"`
Amount int64 `json:"amount"`
Money float64 `json:"money"`
TradeNo string `json:"trade_no"`
CreateTime int64 `json:"create_time"`