From c2710b480baf77a59651708c9f40d6f7f13bd6ee Mon Sep 17 00:00:00 2001 From: sian Date: Wed, 3 Aug 2022 14:15:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=B1=BB=E7=9B=AE=E5=AF=BC?= =?UTF-8?q?=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jd/category.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/jd/category.go b/jd/category.go index 2aad24d..93d831e 100644 --- a/jd/category.go +++ b/jd/category.go @@ -63,3 +63,21 @@ func (c *category) Select(ctx context.Context) (reply []CategoryItem, err error) err = xClient.Call(ctx, "Select", args, &reply) return } + +type ArgsCategoryImport struct { + First string + Second string + Third string + SupplyCategoryId uint +} + +// Import @Title 导入 +func (*category) Import(ctx context.Context, args ArgsCategoryImport) (err error) { + reply := 0 + xClient, err := client.GetClient(ctx) + if err != nil { + return + } + err = xClient.Call(ctx, "Import", args, &reply) + return +}