From b04e8891dc86cdb30586e9389d75e40d61a5d9c1 Mon Sep 17 00:00:00 2001 From: timerzz Date: Mon, 29 Jul 2024 15:45:13 +0800 Subject: [PATCH] =?UTF-8?q?feat=20skuid=20=E4=BB=8Eint64=20=E6=94=B9?= =?UTF-8?q?=E4=B8=BAint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bid-consign.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bid-consign.go b/bid-consign.go index e67a86a..0157c8c 100644 --- a/bid-consign.go +++ b/bid-consign.go @@ -14,7 +14,7 @@ import ( //https://open.dewu.com/#/api/body?apiId=42&id=3&title=%E5%87%BA%E4%BB%B7%E6%9C%8D%E5%8A%A1API type BidClient interface { - LowestPrice(skuId int64) (*PublicResponse[LowestPriceResponse], error) + LowestPrice(skuId int) (*PublicResponse[LowestPriceResponse], error) } type ConsignBidClientImpl struct { @@ -49,7 +49,7 @@ const FastLowestPriceUrl = "/dop/api/v1/consign/bidding/lowest_price" type ConsignLowestPriceReq struct { PublicParams - SkuId int64 `json:"sku_id" url:"sku_id"` + SkuId int `json:"sku_id" url:"sku_id"` } type LowestPriceResponse struct { @@ -62,7 +62,7 @@ type LowestPriceItem struct { BiddingType BiddingType `json:"bidding_type"` } -func (a *ConsignBidClientImpl) LowestPrice(skuId int64) (*PublicResponse[LowestPriceResponse], error) { +func (a *ConsignBidClientImpl) LowestPrice(skuId int) (*PublicResponse[LowestPriceResponse], error) { if skuId == 0 { return nil, Err_Params_None }