From 4876acbe86315e429fcdc142afb74dd66368cde7 Mon Sep 17 00:00:00 2001 From: kanade Date: Thu, 29 Dec 2022 11:01:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=9B=9E=E8=B0=83=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- otosaas/callback.go | 29 +++++++++++++++++++++++++++++ otosaas/otosaas.go | 1 + 2 files changed, 30 insertions(+) create mode 100644 otosaas/callback.go diff --git a/otosaas/callback.go b/otosaas/callback.go new file mode 100644 index 0000000..bb68a2e --- /dev/null +++ b/otosaas/callback.go @@ -0,0 +1,29 @@ +package otosaas + +import ( + "context" + "git.oa00.com/supply-chain/service/client" +) + +type callback struct { +} + +// OtoSaas @Title 海旅回调 +func (c *category) OtoSaas(ctx context.Context, args string) (reply string, err error) { + xClient, err := client.GetClient(c) + if err != nil { + return + } + err = xClient.Call(ctx, "OtoSaas", args, &reply) + return +} + +// Kuaidi100 @Title 快递100回调 +func (c *category) Kuaidi100(ctx context.Context, args string) (reply string, err error) { + xClient, err := client.GetClient(c) + if err != nil { + return + } + err = xClient.Call(ctx, "Kuaidi100", args, &reply) + return +} diff --git a/otosaas/otosaas.go b/otosaas/otosaas.go index 92ab618..17885e8 100644 --- a/otosaas/otosaas.go +++ b/otosaas/otosaas.go @@ -1,6 +1,7 @@ package otosaas type OtoSaas struct { + Callback callback Category category Commodity commodity }