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) +}