feat skuid 从int64 改为int
This commit is contained in:
parent
9f7e84bf7c
commit
b04e8891dc
@ -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
|
//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 {
|
type BidClient interface {
|
||||||
LowestPrice(skuId int64) (*PublicResponse[LowestPriceResponse], error)
|
LowestPrice(skuId int) (*PublicResponse[LowestPriceResponse], error)
|
||||||
}
|
}
|
||||||
|
|
||||||
type ConsignBidClientImpl struct {
|
type ConsignBidClientImpl struct {
|
||||||
@ -49,7 +49,7 @@ const FastLowestPriceUrl = "/dop/api/v1/consign/bidding/lowest_price"
|
|||||||
|
|
||||||
type ConsignLowestPriceReq struct {
|
type ConsignLowestPriceReq struct {
|
||||||
PublicParams
|
PublicParams
|
||||||
SkuId int64 `json:"sku_id" url:"sku_id"`
|
SkuId int `json:"sku_id" url:"sku_id"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type LowestPriceResponse struct {
|
type LowestPriceResponse struct {
|
||||||
@ -62,7 +62,7 @@ type LowestPriceItem struct {
|
|||||||
BiddingType BiddingType `json:"bidding_type"`
|
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 {
|
if skuId == 0 {
|
||||||
return nil, Err_Params_None
|
return nil, Err_Params_None
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user