You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
828 B
19 lines
828 B
9 months ago
|
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"
|
||
|
}
|