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.

47 lines
2.7 KiB

package model
import "pure-admin/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 bkb
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:已失败
}
type SellerBillFund struct {
global.MG_MODEL
UserID string `json:"user_id"` // 商家storeNo
TransactionType int `json:"transaction_type"` // 类型 1-支出 2-收入
TransactionId string `json:"transaction_id"` // 交易编号
Price float64 `json:"price"` // 金额
Remark string `json:"remark"` // 备注
RelatedId string `json:"related_id"` // 关联id 任务id
Status int `json:"status"` // 状态 1:进行中 2:已完成 3:已失败
Seller StoreInfo `json:"seller"` // 店铺信息
Mission MissionClaimView `json:"mission"` // 领取任务信息
}
type AdminBillFund struct {
global.MG_MODEL
UserID string `json:"user_id"` //
TransactionType int `json:"transaction_type"` // 类型 1-支出 2-收入
TransactionId string `json:"transaction_id"` // 交易编号
Price float64 `json:"price"` // 金额
Remark string `json:"remark"` // 备注
RelatedId string `json:"related_id"` // 关联id 任务id
Status int `json:"status"` // 状态 1:进行中 2:已完成 3:已失败
InfluencerUser InfluencerUserClaimView `gorm:"-" json:"influencer"` // 网红信息
}
func (BillFund) TableName() string {
return "bill_fund"
}