package model import "bkb-seller/global" type BillFund struct { // 营销账户账单 global.MG_MODEL UserID string `gorm:"size:50;index" json:"userID"` // 用户id TransactionType int `gorm:"type:int(1);default:1" json:"transaction_type"` // 类型 1-支出 2-收入 TransactionId string `gorm:"size:50;unique" json:"transaction_id"` // 交易编号 Title string `gorm:"size:255" json:"title"` // 账单标题 Price float64 `gorm:"type:decimal(10,2)" json:"price"` // 价格 Balance float64 `gorm:"type:decimal(10,2)" json:"balance"` // 余额 Platform string `gorm:"size:20" json:"platform"` // 平台 seller Remark string `gorm:"size:50" json:"remark"` // 备注 RelatedId string `gorm:"size:50" json:"related_id"` // 关联id 任务id PayId string `gorm:"size:50" json:"pay_id"` // 支付id Status int `gorm:"size:1" json:"status"` // 状态 1:进行中 2:已完成 3:已失败 } func (BillFund) TableName() string { return "bill_fund" }