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 获取运费