- 继续重构新版同步逻辑

This commit is contained in:
gazebo
2019-07-12 15:01:49 +08:00
parent 7d59d1d0f1
commit 8f0f3f2690
7 changed files with 196 additions and 12 deletions

View File

@@ -31,15 +31,18 @@ type BareStoreSkuInfo struct {
type FullSkuInfo struct {
BareStoreSkuInfo
SkuName string
SpecQuality int
Comment string
SpecQuality float64
SpecUnit string
Weight int
ActPrice int64
}
type SkuNameInfo struct {
NameID int `json:"nameID,omitempty"`
VendorNameID string `json:"vendorNameID,omitempty"`
NameID int `json:"nameID,omitempty"`
VendorNameID string `json:"vendorNameID,omitempty"`
Prefix string
Name string
Description string
Unit string
@@ -100,7 +103,7 @@ type ISingleStoreStoreSkuHandler interface {
IPurchasePlatformStoreSkuHandler
// 这个函数与GetStoreSkusInfo的区别是GetStoreAllSkus取的是全信息而GetStoreSkusInfo只含库存价格与可售信息
// GetStoreAllSkus(ctx *jxcontext.Context, vendorStoreID string) (skuNameList []*SkuNameInfo, err error)
GetStoreAllSkus(ctx *jxcontext.Context, storeID int, vendorStoreID string) (skuNameList []*SkuNameInfo, err error)
CreateStoreSkus(ctx *jxcontext.Context, vendorStoreID string, storeSkuList []*dao.StoreSkuSyncInfo) (err error)
UpdateStoreSkus(ctx *jxcontext.Context, vendorStoreID string, storeSkuList []*dao.StoreSkuSyncInfo) (err error)
DeleteStoreSkus(ctx *jxcontext.Context, storeID int, vendorStoreID string, storeSkuList []*BareStoreSkuInfo) (err error)