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.
20 lines
970 B
20 lines
970 B
package model
|
|
|
|
import "bkb-seller/global"
|
|
|
|
type Wallet struct {
|
|
global.MG_MODEL
|
|
UserID string `gorm:"size:50" json:"userId"`
|
|
Platform string `gorm:"size:50" json:"platform"` //平台 saller / customer / influencer
|
|
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:"fund"` // 营销账户
|
|
FundLock float64 `gorm:"type:decimal(10,2)" json:"fundLock"` // 营销账户-锁定金额
|
|
State int `gorm:"type:tinyint(1)" json:"state"` // 状态 0:正常 1:限制提现 2:禁止提现
|
|
AccountName string `gorm:"size:50" json:"accountName"` //户名
|
|
IDCard string `gorm:"size:30" json:"idCard"` //身份证
|
|
}
|
|
|
|
func (Wallet) TableName() string {
|
|
return "wallet"
|
|
}
|
|
|