- skuName place bind man.
This commit is contained in:
30
business/model/store_sku.go
Normal file
30
business/model/store_sku.go
Normal file
@@ -0,0 +1,30 @@
|
||||
package model
|
||||
|
||||
type StoreSkuCategoryMap struct {
|
||||
ModelIDCUL
|
||||
|
||||
StoreID int `orm:"column(store_id)"`
|
||||
SkuCategoryID int `orm:"column(sku_category_id)"`
|
||||
|
||||
ElmID int64 `orm:"column(elm_id);index"`
|
||||
EbaiID int64 `orm:"column(ebai_id);index"`
|
||||
}
|
||||
|
||||
type StoreSkuBind struct {
|
||||
ModelIDCUL
|
||||
|
||||
StoreID int `orm:"column(store_id)"`
|
||||
SkuID int `orm:"column(sku_id)"`
|
||||
SubStoreID int `orm:"column(sub_store_id)"`
|
||||
Price int // 单位为分,不用int64的原因是这里不需要累加
|
||||
Status int
|
||||
|
||||
ElmID int64 `orm:"column(elm_id);index"`
|
||||
EbaiID int64 `orm:"column(ebai_id);index"`
|
||||
}
|
||||
|
||||
func (*StoreSkuBind) TableUnique() [][]string {
|
||||
return [][]string{
|
||||
[]string{"StoreID", "SkuID"},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user