package model import "pure/global" type Wallet struct { global.MG_MODEL UserID string `gorm:"size:50" json:"userId"` Balance float64 `gorm:"type:decimal(10,2)" json:"balance"` //可用余额 TransitBalance float64 `gorm:"type:decimal(10,2)" json:"transitBalance"` //在途余额 Fund float64 `gorm:"type:decimal(10,2)" json:"-"` // 营销账户 FundLock float64 `gorm:"type:decimal(10,2)" json:"-"` // 营销账户-锁定金额 Platform string `gorm:"size:50" json:"platform"` //平台 saller(买家端) / customer(客户端) / influencer(网红端) State int `gorm:"type:tinyint(1)" json:"state"` // 状态 0:正常 1:限制提现 2:禁止提现 } func (Wallet) TableName() string { return "wallet" }