From 9040b6f76cbbcc0162dd0072d5634a199c5b9ec4 Mon Sep 17 00:00:00 2001 From: sian Date: Fri, 2 Sep 2022 10:34:35 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E8=AD=A6=E8=81=94=E7=B3=BB=E4=BA=BA?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supplier/supplier.go | 1 + supplier/warnLiaison.go | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 supplier/warnLiaison.go diff --git a/supplier/supplier.go b/supplier/supplier.go index 7ff3952..2a32b9b 100644 --- a/supplier/supplier.go +++ b/supplier/supplier.go @@ -11,6 +11,7 @@ type Supplier struct { Goods goods Apply supplierApply supplier + warnLiaison } type supplier struct { diff --git a/supplier/warnLiaison.go b/supplier/warnLiaison.go new file mode 100644 index 0000000..0dbe275 --- /dev/null +++ b/supplier/warnLiaison.go @@ -0,0 +1,29 @@ +package supplier + +import ( + "context" + "git.oa00.com/supply-chain/service/client" +) + +type warnLiaison struct { +} + +// Lists @Title 预警联系人列表 +func (s *warnLiaison) Lists(ctx context.Context, args int) (reply []string, err error) { + xClient, err := client.GetClient(s) + if err != nil { + return nil, err + } + err = xClient.Call(ctx, "Lists", args, &reply) + return +} + +// Update @Title 修改预警联系人 +func (s *warnLiaison) Update(ctx context.Context, args []string) error { + xClient, err := client.GetClient(s) + if err != nil { + return err + } + reply := 0 + return xClient.Call(ctx, "Update", args, &reply) +}