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.
24 lines
836 B
24 lines
836 B
6 months ago
|
package model
|
||
|
|
||
|
import "shop-api/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"` // 在途余额
|
||
|
Platform string `gorm:"size:50" json:"platform"` // 平台 seller(买家端) / customer(客户端) / influencer(网红端)
|
||
|
State int `gorm:"type:tinyint(1)" json:"state"` // 状态 0:正常 1:限制提现 2:禁止提现
|
||
|
}
|
||
|
|
||
|
type PaymentMethod struct {
|
||
|
Logo string `json:"logo"` // logo
|
||
|
Name string `json:"name"` // 名称
|
||
|
Value string `json:"value"` // 标识值
|
||
|
Type string `json:"type"` // 支付类型
|
||
|
}
|
||
|
|
||
|
func (Wallet) TableName() string {
|
||
|
return "wallet"
|
||
|
}
|