- mtps, dada create waybill
- create legacy jxorder(not finished).
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user