From 4b5e5fb0e331225c4cc39c7fcae656a30b2c5fee Mon Sep 17 00:00:00 2001 From: sian Date: Thu, 1 Sep 2022 16:40:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=90=AF=E7=94=A8/=E7=A6=81?= =?UTF-8?q?=E7=94=A8=E4=BE=9B=E5=BA=94=E5=95=86=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supplier/supplier.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/supplier/supplier.go b/supplier/supplier.go index f98d469..3898ff8 100644 --- a/supplier/supplier.go +++ b/supplier/supplier.go @@ -71,3 +71,23 @@ func (s *supplier) Lists(ctx context.Context, args ArgsSupplierLists) (reply Rep err = xClient.Call(ctx, "Lists", args, &reply) return } + +// Enabled @Title 启用供应商 +func (s *supplier) Enabled(ctx context.Context, supplierId uint) error { + xClient, err := client.GetClient(s) + if err != nil { + return err + } + reply := 0 + return xClient.Call(ctx, "Enabled", supplierId, &reply) +} + +// Disabled @Title 启用供应商 +func (s *supplier) Disabled(ctx context.Context, supplierId uint) error { + xClient, err := client.GetClient(s) + if err != nil { + return err + } + reply := 0 + return xClient.Call(ctx, "Disabled", supplierId, &reply) +}