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 }