From d41fe93473da8ba0539e6f149f72726277401c76 Mon Sep 17 00:00:00 2001 From: kanade Date: Fri, 10 May 2024 13:37:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- skycrane/task.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/skycrane/task.go b/skycrane/task.go index 31b6871..fa5d7ee 100644 --- a/skycrane/task.go +++ b/skycrane/task.go @@ -43,3 +43,23 @@ func (t *task) GetPullStatus(ctx context.Context) (reply TaskStatus, err error) err = xClient.Call(ctx, "GetPullStatus", 0, &reply) return } + +// Prices @Title 商品更新 +func (t *task) Prices(ctx context.Context) error { + a := 0 + xClient, err := client.GetClient(t) + if err != nil { + return err + } + return xClient.Call(ctx, "Prices", 0, &a) +} + +// GetPricesStatus @Title 获取拉取状态 +func (t *task) GetPricesStatus(ctx context.Context) (reply TaskStatus, err error) { + xClient, err := client.GetClient(t) + if err != nil { + return + } + err = xClient.Call(ctx, "GetPricesStatus", 0, &reply) + return +}