From 8fa95695d4423f424388cb014fd43b8586dd60ff Mon Sep 17 00:00:00 2001 From: kanade Date: Fri, 5 Aug 2022 15:20:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supply/channel/order.go | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/supply/channel/order.go b/supply/channel/order.go index f253939..e5eab07 100644 --- a/supply/channel/order.go +++ b/supply/channel/order.go @@ -7,6 +7,11 @@ import ( "github.com/smallnest/rpcx/share" ) +const ( + ReplyOrderFreightFeeErrCodeNone = 0 // 无错误 + ReplyOrderFreightFeeErrCodeErr = 1 // 有错误 +) + type order struct { } type ArgsOrderFreightFee struct { @@ -15,14 +20,15 @@ type ArgsOrderFreightFee struct { } type SkuFreightFeeItem struct { - SkuId uint // skuId - Price decimal.Decimal // 价格 - Quantity uint // 数量 + SkuId uint // skuId + Quantity uint // 数量 } type ReplyOrderFreightFee struct { SkuIds []uint `json:"skuIds"` FreightFee decimal.Decimal `json:"freightFee"` + ErrCode uint `json:"errCode"` + ErrMsg string `json:"errMsg"` } // FreightFee @Title 获取运费