- mtps, dada create waybill

- create legacy jxorder(not finished).
This commit is contained in:
gazebo
2018-07-14 14:35:51 +08:00
parent 52248ca427
commit 805925ff58
19 changed files with 759 additions and 147 deletions

View File

@@ -11,13 +11,14 @@ var (
CurrentScheduler Scheduler
)
type AutoStatusChangeConfig struct {
NextStatus int
Timeout time.Duration
type StatusTimeoutAction struct {
Action func(order *model.GoodsOrder) (err error)
Timeout time.Duration
}
type StatusConfig struct {
AutoStatusChange map[int][]*AutoStatusChangeConfig
handler PurchasePlatformHandler
AutoStatusChange map[int]*StatusTimeoutAction
}
type PurchasePlatformHandler interface {
@@ -27,7 +28,7 @@ type PurchasePlatformHandler interface {
}
type DeliveryPlatformHandler interface {
CreateWaybill(bill *model.Waybill) (err error)
CreateWaybill(order *model.GoodsOrder) (err error)
CancelWaybill(bill *model.Waybill) (err error)
}