diff --git a/business/model/store.go b/business/model/store.go index 5885ebbd6..80b7010a1 100644 --- a/business/model/store.go +++ b/business/model/store.go @@ -801,6 +801,23 @@ func (*Brand) TableUnique() [][]string { } } +type BrandBill struct { + ModelIDCUL + + BrandID int `orm:"brand_id" json:"brandID"` //品牌ID + Price int `json:"price"` //金额 + BillType int `json:"billType"` //收入/支出 + FeeType int `json:"feeType"` //费用类型 + VendorOrderID string `orm:"vendor_order_id" json:"vendorOrderID"` //产生费用的订单号 + OrderID string `orm:"order_id" json:"orderID"` //关联orderPay表的订单号 +} + +func (*BrandBill) TableUnique() [][]string { + return [][]string{ + []string{"BrandID", "CreatedAt"}, + } +} + type BrandStore struct { ModelIDCULD