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.

32 lines
1.4 KiB

package model
import (
"bkb-seller/global"
"time"
)
type Withdrawal struct { // 提现记录
global.MG_MODEL
Platform string `gorm:"size:10" json:"platform"` // 平台 1:网红 2:商家
WalletType int `gorm:"type:tinyint(1)" json:"wallet_type"` // 钱包类型 1:余额钱包 2:营销账户钱包
FlowNo string `gorm:"size:50;unique" json:"flow_no"` // 流水号
BillNo string `gorm:"size:50" json:"bill_no"` // 账单号
Title string `gorm:"size:255" json:"title"` // 标题
AccountType int `gorm:"type:int(1)" json:"account_type"` // 账户类型 1:paypal 2:银行卡
BankCard
CreateBy string `gorm:"size:50" json:"create_by"` // 创建人/店铺
Amount float64 `gorm:"type:decimal(10,2)" json:"amount"` // 金额
CheckStatus string `gorm:"size:1" json:"check_status"` // 审核状态 0:待审核 1:审核通过 2:审核未通过
CheckTime *time.Time `gorm:"" json:"check_time"` // 审核时间
PayId string `gorm:"size:50" json:"pay_id"` // 支付id
Status string `gorm:"size:1" json:"status"` // 提现状态 0:进行中 1:成功 2:失败
Remark string `gorm:"size:255" json:"remark"` // 备注
}
type WithdrawalView struct {
FlowNo string `json:"flow_no"` // 流水号
}
func (Withdrawal) TableName() string {
return "withdrawal"
}