修改接口

finance
杨赟 2 years ago
parent 57901d8bf9
commit 8fa95695d4

@ -7,6 +7,11 @@ import (
"github.com/smallnest/rpcx/share" "github.com/smallnest/rpcx/share"
) )
const (
ReplyOrderFreightFeeErrCodeNone = 0 // 无错误
ReplyOrderFreightFeeErrCodeErr = 1 // 有错误
)
type order struct { type order struct {
} }
type ArgsOrderFreightFee struct { type ArgsOrderFreightFee struct {
@ -15,14 +20,15 @@ type ArgsOrderFreightFee struct {
} }
type SkuFreightFeeItem struct { type SkuFreightFeeItem struct {
SkuId uint // skuId SkuId uint // skuId
Price decimal.Decimal // 价格 Quantity uint // 数量
Quantity uint // 数量
} }
type ReplyOrderFreightFee struct { type ReplyOrderFreightFee struct {
SkuIds []uint `json:"skuIds"` SkuIds []uint `json:"skuIds"`
FreightFee decimal.Decimal `json:"freightFee"` FreightFee decimal.Decimal `json:"freightFee"`
ErrCode uint `json:"errCode"`
ErrMsg string `json:"errMsg"`
} }
// FreightFee @Title 获取运费 // FreightFee @Title 获取运费

Loading…
Cancel
Save