From d162fbed61cceed022489570a5317f5699016749 Mon Sep 17 00:00:00 2001 From: kanade Date: Sun, 18 Sep 2022 17:20:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=89=A9=E6=B5=81=E8=BD=A8?= =?UTF-8?q?=E8=BF=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 | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/supply/channel/order.go b/supply/channel/order.go index 1b4cec3..b471055 100644 --- a/supply/channel/order.go +++ b/supply/channel/order.go @@ -4,6 +4,7 @@ import ( "context" "git.oa00.com/supply-chain/service/client" "git.oa00.com/supply-chain/service/lib/bean" + _interface "git.oa00.com/supply-chain/service/supply/interface" "github.com/shopspring/decimal" "github.com/smallnest/rpcx/share" ) @@ -197,3 +198,13 @@ func (o *order) Detail(ctx context.Context, channelId string, orderSn string) (r err = xClient.Call(context.WithValue(ctx, share.ReqMetaDataKey, map[string]string{"channelId": channelId}), "Detail", orderSn, &reply) return } + +// Trajectory @Title 获取订单物流信息 +func (o *order) Trajectory(ctx context.Context, channelId string, orderSn string) (reply []_interface.ReplyTrajectory, err error) { + xClient, err := client.GetClient(o) + if err != nil { + return + } + err = xClient.Call(context.WithValue(ctx, share.ReqMetaDataKey, map[string]string{"channelId": channelId}), "Trajectory", orderSn, &reply) + return +}