- no platform dependency in sync.go

This commit is contained in:
gazebo
2018-10-11 22:17:20 +08:00
parent 02b97909bc
commit 6133998e54
17 changed files with 152 additions and 52 deletions

View File

@@ -77,6 +77,7 @@ type IPurchasePlatformHandler interface {
SyncStoresSkus(db *dao.DaoDB, storeIDs []int, skuIDs []int, isSync bool, userName string) (err error)
GetVendorID() int
GetFieldIDName() string
GetFieldSyncStatusName() string
}
@@ -111,6 +112,8 @@ type ISingleStoreHandler interface {
type IDeliveryPlatformHandler interface {
CreateWaybill(order *model.GoodsOrder, policy func(deliveryFee, addFee int64) error) (bill *model.Waybill, err error)
CancelWaybill(bill *model.Waybill, cancelReasonID int, cancelReason string) (err error)
GetVendorID() int
}
func Init(curOrderManager IOrderManager) {