Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CategoryInfo ¶
type CommissionInfo ¶
type CouponInfo ¶
type CouponInfo struct {
CouponList []CouponList `json:"couponList"`
}
type CouponList ¶
type CouponList struct { BindType int64 `json:"bindType"` Discount float64 `json:"discount"` GetEndTime int64 `json:"getEndTime"` GetStartTime int64 `json:"getStartTime"` HotValue *int64 `json:"hotValue,omitempty"` IsBest int64 `json:"isBest"` IsInputCoupon int64 `json:"isInputCoupon"` Link string `json:"link"` PlatformType int64 `json:"platformType"` Quota float64 `json:"quota"` UseEndTime int64 `json:"useEndTime"` UseStartTime int64 `json:"useStartTime"` }
type Datum ¶
type Datum struct { BrandCode string `json:"brandCode"` BrandName string `json:"brandName"` CategoryInfo CategoryInfo `json:"categoryInfo"` Comments int64 `json:"comments"` CommissionInfo CommissionInfo `json:"commissionInfo"` CouponInfo CouponInfo `json:"couponInfo"` DeliveryType int64 `json:"deliveryType"` ForbidTypes []int64 `json:"forbidTypes"` // 0普通商品,10微信京东购物小程序禁售,11微信京喜小程序禁售 ImageInfo ImageInfo `json:"imageInfo"` InOrderComm30Days float64 `json:"inOrderComm30Days"` InOrderCount30Days int64 `json:"inOrderCount30Days"` IsHot int64 `json:"isHot"` IsJdSale int64 `json:"isJdSale"` MaterialURL string `json:"materialUrl"` Owner string `json:"owner"` PinGouInfo PinGouInfo `json:"pinGouInfo"` PriceInfo PriceInfo `json:"priceInfo"` ShopInfo ShopInfo `json:"shopInfo"` SkuID int64 `json:"skuId"` SkuName string `json:"skuName"` Spuid int64 `json:"spuid"` VideoInfo VideoInfo `json:"videoInfo"` BookInfo BookInfo `json:"bookInfo"` JxFlags []int64 `json:"jxFlags"` // 京喜商品类型(1京喜;2京喜工厂直供;3京喜优选(包含3时可在京东APP购买)) EliteType []int64 `json:"eliteType"` // 资源位17:极速版商品 DocumentInfo DocumentInfo `json:"documentInfo"` SeckillInfo SeckillInfo `json:"seckillInfo"` //秒杀信息 }
type DocumentInfo ¶
type PinGouInfo ¶
type QueryResult ¶
type QueryResult struct { Code int64 `json:"code"` Data []Datum `json:"data"` Message string `json:"message"` RequestID string `json:"requestId"` TotalCount int64 `json:"totalCount"` }
QueryResult 具体内容
type Responce ¶
type Responce struct { Code string `json:"code"` QueryResultStr string `json:"queryResult"` QueryResult QueryResult }
Responce 响应结果
type Response ¶
type Response struct { response.TopResponse Responce Responce `json:"jd_union_open_goods_query_responce"` }
Response jd.union.open.goods.query 接口描述:查询商品及优惠券信息,返回的结果可调用转链接口生成单品或二合一推广链接。支持按SKUID、关键词、优惠券基本属性、是否拼购、是否爆款等条件查询,建议不要同时传入SKUID和其他字段,以获得较多的结果。支持按价格、佣金比例、佣金、引单量等维度排序。用优惠券链接调用转链接口时,需传入搜索接口link字段返回的原始优惠券链接,切勿对链接进行任何encode、decode操作,否则将导致转链二合一推广链接时校验失败。
type SeckillInfo ¶
type ShopInfo ¶
type ShopInfo struct { AfsFactorScoreRankGrade string `json:"afsFactorScoreRankGrade"` AfterServiceScore string `json:"afterServiceScore"` CommentFactorScoreRankGrade string `json:"commentFactorScoreRankGrade"` LogisticsFactorScoreRankGrade string `json:"logisticsFactorScoreRankGrade"` LogisticsLvyueScore string `json:"logisticsLvyueScore"` ScoreRankRate string `json:"scoreRankRate"` ShopID int64 `json:"shopId"` ShopLabel string `json:"shopLabel"` ShopLevel float64 `json:"shopLevel"` ShopName string `json:"shopName"` UserEvaluateScore string `json:"userEvaluateScore"` }
Click to show internal directories.
Click to hide internal directories.