- rename partner.CreateWaybillPolicy to CreateWaybillPolicyFunc

This commit is contained in:
gazebo
2019-07-30 16:53:13 +08:00
parent 2cce24bd72
commit c7bf2df5a5
8 changed files with 24 additions and 17 deletions

View File

@@ -25,7 +25,7 @@ type WaybillFeeInfo struct {
Waybill *model.Waybill `json:"waybill"`
}
type CreateWaybillPolicy func(refDeliveryFee, refAddFee, deliveryFee int64) (errStr string)
type CreateWaybillPolicyFunc func(refDeliveryFee, refAddFee, deliveryFee int64) (errStr string)
type IDeliveryPlatformHandler interface {
GetVendorID() int
@@ -35,7 +35,7 @@ type IDeliveryPlatformHandler interface {
IsErrStoreNotExist(err error) bool
IsErrStoreExist(err error) bool
CreateWaybill(order *model.GoodsOrder, policy CreateWaybillPolicy) (bill *model.Waybill, err error)
CreateWaybill(order *model.GoodsOrder, policy CreateWaybillPolicyFunc) (bill *model.Waybill, err error)
CancelWaybill(bill *model.Waybill, cancelReasonID int, cancelReason string) (err error)
GetWaybillFee(order *model.GoodsOrder) (deliveryFeeInfo *WaybillFeeInfo, err error)
}