diff --git a/rpc/error.go b/rpc/error.go index 80f924b..37aad59 100644 --- a/rpc/error.go +++ b/rpc/error.go @@ -11,6 +11,9 @@ const ( ErrorOrderShipment Error = 11005 // 无法配送 ErrorOrderSkuPrice Error = 11006 // 商品价格错误 ErrorOrderAmount Error = 11007 // 订单金额错误 + ErrorOrderLadingBill Error = 11008 // 订单已提单 + ErrorOrderClose Error = 11009 // 订单已关闭 + ErrorOrderTimeOut Error = 11010 // 订单超时 ) var ErrorCodes = map[Error]string{ @@ -21,6 +24,9 @@ var ErrorCodes = map[Error]string{ ErrorOrderShipment: "无法配送", ErrorOrderSkuPrice: "商品价格错误", ErrorOrderAmount: "订单金额错误", + ErrorOrderLadingBill: "订单已提单", + ErrorOrderClose: "订单已关闭", + ErrorOrderTimeOut: "订单超时", } func (e Error) Error() string { diff --git a/supply/interface/order.go b/supply/interface/order.go index c8c5d4a..1630fc4 100644 --- a/supply/interface/order.go +++ b/supply/interface/order.go @@ -10,6 +10,10 @@ type OrderInterface interface { FreightFee(ctx context.Context, args ArgsOrderFreightFee, freightFee *decimal.Decimal) error // Submit 下单 Submit(ctx context.Context, args ArgsOrderSubmit, sourceOrderSn *string) error + // LadingBill @Title 提单 + LadingBill(ctx context.Context, orderSn string, reply *int) error + // Close @Title 关闭订单 + Close(ctx context.Context, orderSn string, reply *int) error } type ArgsOrderFreightFee struct { Skus []OrderFreightFeeSkuItem // 商品信息