Documentation
¶
Index ¶
- Constants
- func GetSign(clientSecret string, p map[string]string) string
- func GetString(i interface{}) string
- type App
- func (app *App) JdUnionOpenActivityQuery(params map[string]interface{}) (result *JdUnionOpenActivityQueryResult, err error)
- func (app *App) JdUnionOpenCategoryGoodsGet(params map[string]interface{}) (result *JdUnionOpenCategoryGoodsGetResult, err error)
- func (app *App) JdUnionOpenCouponGiftGet(params map[string]interface{}) (result *JdUnionOpenCouponGiftGetResult, err error)
- func (app *App) JdUnionOpenCouponGiftStop(params map[string]interface{}) (result *JdUnionOpenCouponGiftStopResult, err error)
- func (app *App) JdUnionOpenGoodsBigfieldQuery(params map[string]interface{}) (result *JdUnionOpenGoodsBigfieldQueryResult, err error)
- func (app *App) JdUnionOpenGoodsJingfenQuery(params map[string]interface{}) (result *JdUnionOpenGoodsQueryResult, err error)
- func (app *App) JdUnionOpenGoodsMaterialQuery(params map[string]interface{}) (result *JdUnionOpenGoodsQueryResult, err error)
- func (app *App) JdUnionOpenGoodsPromotiongoodsinfoQuery(params map[string]interface{}) (result *JdUnionOpenGoodsPromotiongoodsinfoQueryResult, err error)
- func (app *App) JdUnionOpenGoodsQuery(params map[string]interface{}) (result *JdUnionOpenGoodsQueryResult, err error)
- func (app *App) JdUnionOpenOrderQuery(params map[string]interface{}) (result *JdUnionOpenOrderQueryResult, err error)
- func (app *App) JdUnionOpenOrderRowQuery(params map[string]interface{}) (result *JdUnionOpenOrderRowQueryResult, err error)
- func (app *App) JdUnionOpenPromotionBysubunionidGet(params map[string]interface{}) (result *JdUnionOpenPromotionBysubunionidGetResult, err error)
- func (app *App) JdUnionOpenPromotionCommonGet(params map[string]interface{}) (result *JdUnionOpenPromotionCommonGetResult, err error)
- func (app *App) JdUnionOpenStatisticsGiftcouponQuery(params map[string]interface{}) (result *JdUnionOpenStatisticsGiftcouponQueryResult, err error)
- func (app *App) Request(method string, param interface{}) ([]byte, error)
- func (app *App) Values(params map[string]interface{}) url.Values
- type BookInfo
- type Cate
- type CategoryInfo
- type CharacteristicServiceInfo
- type CommissionInfo
- type Coupon
- type CouponEffectData
- type CouponEffectDataResp
- type CouponGift
- type CouponInfo
- type DocumentInfo
- type ErrorResponse
- type Goods
- type GoodsInfo
- type ImageInfo
- type ImageList
- type JdUnionErrResp
- type JdUnionOpenActivityQueryCate
- type JdUnionOpenActivityQueryData
- type JdUnionOpenActivityQueryImage
- type JdUnionOpenActivityQueryResponse
- type JdUnionOpenActivityQueryResult
- type JdUnionOpenActivityQueryTopLevel
- type JdUnionOpenCategoryGoodsGetResponse
- type JdUnionOpenCategoryGoodsGetResult
- type JdUnionOpenCategoryGoodsGetTopLevel
- type JdUnionOpenCouponGiftGetResponse
- type JdUnionOpenCouponGiftGetResult
- type JdUnionOpenCouponGiftGetTopLevel
- type JdUnionOpenCouponGiftStopResponse
- type JdUnionOpenCouponGiftStopResult
- type JdUnionOpenCouponGiftStopTopLevel
- type JdUnionOpenGoodsBigfieldQueryResponse
- type JdUnionOpenGoodsBigfieldQueryResult
- type JdUnionOpenGoodsBigfieldQueryTopLevel
- type JdUnionOpenGoodsJingfenQueryResponse
- type JdUnionOpenGoodsJingfenQueryTopLevel
- type JdUnionOpenGoodsMaterialQueryResponse
- type JdUnionOpenGoodsMaterialQueryTopLevel
- type JdUnionOpenGoodsPromotiongoodsinfoQueryResponse
- type JdUnionOpenGoodsPromotiongoodsinfoQueryResult
- type JdUnionOpenGoodsPromotiongoodsinfoQueryTopLevel
- type JdUnionOpenGoodsQueryResponse
- type JdUnionOpenGoodsQueryResponseTopLevel
- type JdUnionOpenGoodsQueryResult
- type JdUnionOpenOrderQueryResponse
- type JdUnionOpenOrderQueryResponseTopLevel
- type JdUnionOpenOrderQueryResult
- type JdUnionOpenOrderRowQueryResponse
- type JdUnionOpenOrderRowQueryResponseTopLevel
- type JdUnionOpenOrderRowQueryResult
- type JdUnionOpenPromotionBysubunionidGetResponse
- type JdUnionOpenPromotionBysubunionidGetResult
- type JdUnionOpenPromotionBysubunionidGetTopLevel
- type JdUnionOpenPromotionCommonGetResponse
- type JdUnionOpenPromotionCommonGetResult
- type JdUnionOpenPromotionCommonGetTopLevel
- type JdUnionOpenStatisticsGiftcouponQueryResponse
- type JdUnionOpenStatisticsGiftcouponQueryResult
- type JdUnionOpenStatisticsGiftcouponQueryTopLevel
- type Order
- type OrderRow
- type OrderRowGoodsInfo
- type PinGouInfo
- type PingGouInfo
- type PriceInfo
- type PromotionCommonURL
- type PromotionLabelInfo
- type PromotionUrl
- type ResourceInfo
- type SeckillInfo
- type SecondPriceInfo
- type ShopInfo
- type SkuLabelInfo
- type SkuList
- type Video
- type VideoInfo
Constants ¶
View Source
const RouterURL = "https://api.jd.com/routerjson"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App struct {
SiteID string `json:"site_id"` //网站id
SiteName string `json:"site_name"` //网站名称,可为空
AppKey string `json:"app_key"` //网站对应appkey
SecretKey string `json:"secret_key"` //网站对应secretkey
AccessToken string `json:"access_token"` //授权Key
}
func (*App) JdUnionOpenActivityQuery ¶
func (app *App) JdUnionOpenActivityQuery(params map[string]interface{}) (result *JdUnionOpenActivityQueryResult, err error)
func (*App) JdUnionOpenCategoryGoodsGet ¶
func (app *App) JdUnionOpenCategoryGoodsGet(params map[string]interface{}) (result *JdUnionOpenCategoryGoodsGetResult, err error)
func (*App) JdUnionOpenCouponGiftGet ¶
func (app *App) JdUnionOpenCouponGiftGet(params map[string]interface{}) (result *JdUnionOpenCouponGiftGetResult, err error)
func (*App) JdUnionOpenCouponGiftStop ¶
func (app *App) JdUnionOpenCouponGiftStop(params map[string]interface{}) (result *JdUnionOpenCouponGiftStopResult, err error)
func (*App) JdUnionOpenGoodsBigfieldQuery ¶
func (app *App) JdUnionOpenGoodsBigfieldQuery(params map[string]interface{}) (result *JdUnionOpenGoodsBigfieldQueryResult, err error)
func (*App) JdUnionOpenGoodsJingfenQuery ¶
func (app *App) JdUnionOpenGoodsJingfenQuery(params map[string]interface{}) (result *JdUnionOpenGoodsQueryResult, err error)
func (*App) JdUnionOpenGoodsMaterialQuery ¶
func (app *App) JdUnionOpenGoodsMaterialQuery(params map[string]interface{}) (result *JdUnionOpenGoodsQueryResult, err error)
func (*App) JdUnionOpenGoodsPromotiongoodsinfoQuery ¶
func (app *App) JdUnionOpenGoodsPromotiongoodsinfoQuery(params map[string]interface{}) (result *JdUnionOpenGoodsPromotiongoodsinfoQueryResult, err error)
func (*App) JdUnionOpenGoodsQuery ¶
func (app *App) JdUnionOpenGoodsQuery(params map[string]interface{}) (result *JdUnionOpenGoodsQueryResult, err error)
func (*App) JdUnionOpenOrderQuery ¶
func (app *App) JdUnionOpenOrderQuery(params map[string]interface{}) (result *JdUnionOpenOrderQueryResult, err error)
func (*App) JdUnionOpenOrderRowQuery ¶
func (app *App) JdUnionOpenOrderRowQuery(params map[string]interface{}) (result *JdUnionOpenOrderRowQueryResult, err error)
func (*App) JdUnionOpenPromotionBysubunionidGet ¶
func (app *App) JdUnionOpenPromotionBysubunionidGet(params map[string]interface{}) (result *JdUnionOpenPromotionBysubunionidGetResult, err error)
func (*App) JdUnionOpenPromotionCommonGet ¶
func (app *App) JdUnionOpenPromotionCommonGet(params map[string]interface{}) (result *JdUnionOpenPromotionCommonGetResult, err error)
func (*App) JdUnionOpenStatisticsGiftcouponQuery ¶
func (app *App) JdUnionOpenStatisticsGiftcouponQuery(params map[string]interface{}) (result *JdUnionOpenStatisticsGiftcouponQueryResult, err error)
type CategoryInfo ¶
type CharacteristicServiceInfo ¶
type CharacteristicServiceInfo struct {
ServiceName string `json:"serviceName"` //服务名称
}
type CommissionInfo ¶
type CommissionInfo struct {
Commission decimal.Decimal `json:"commission"` //佣金
CouponCommission decimal.Decimal `json:"couponCommission"` //券后佣金,(促销价-优惠券面额)*佣金比例
IsLock int64 `json:"isLock"` //是否锁定佣金比例:1是,0否
StartTime int64 `json:"startTime"` //计划开始时间(时间戳,毫秒)
EndTime int64 `json:"endTime"` //计划结束时间(时间戳,毫秒)
}
type Coupon ¶
type Coupon struct {
BindType int64 `json:"bindType"` //券种类 (优惠券种类:0 - 全品类,1 - 限品类(自营商品),2 - 限店铺,3 - 店铺限商品券)
Discount decimal.Decimal `json:"discount"` //券面额
Link string `json:"link"` //券链接
PlatformType int64 `json:"platformType"` //券使用平台 (平台类型:0 - 全平台券,1 - 限平台券)
Quota decimal.Decimal `json:"quota"` //券消费限额
GetStartTime int64 `json:"getStartTime"` //领取开始时间(时间戳,毫秒)
GetEndTime int64 `json:"getEndTime"` //券领取结束时间(时间戳,毫秒)
UseStartTime int64 `json:"useStartTime"` //券有效使用开始时间(时间戳,毫秒)
UseEndTime int64 `json:"useEndTime"` //券有效使用结束时间(时间戳,毫秒)
IsBest int64 `json:"isBest"` //最优优惠券,1:是;0:否,购买一件商品可使用的面额最大优惠券
HotValue int64 `json:"hotValue"` //券热度,值越大热度越高,区间:[0,10]
}
type CouponEffectData ¶
type CouponEffectData struct {
Amount decimal.Decimal `json:"amount"`
ContentMatch int `json:"contentMatch"`
GiftCouponKey string `json:"giftCouponKey"`
CostNum int `json:"costNum"`
ExpireType int `json:"expireType"`
UseStartTime string `json:"useStartTime"`
YgCommission decimal.Decimal `json:"ygCommission"`
ReceiveStartTime string `json:"receiveStartTime"`
CostAmount decimal.Decimal `json:"costAmount"`
ShowStatus int `json:"showStatus"`
Type int `json:"type"`
Denomination decimal.Decimal `json:"denomination"`
UseEndTime string `json:"useEndTime"`
ReceiveEndTime string `json:"receiveEndTime"`
EffectiveDays int `json:"effectiveDays"`
ReceiveNum int `json:"receiveNum"`
SkuIdList []int `json:"skuIdList"`
Status int `json:"status"`
CouponTitle string `json:"couponTitle"`
}
type CouponEffectDataResp ¶
type CouponEffectDataResp struct {
GiftCouponEffectDataResp *CouponEffectData `json:"giftCouponEffectDataResp"`
}
type CouponGift ¶
type CouponGift struct {
GiftCouponKey string `json:"giftCouponKey"`
}
type CouponInfo ¶
type CouponInfo struct {
CouponList []Coupon `json:"couponList"`
}
type DocumentInfo ¶
type ErrorResponse ¶
type Goods ¶
type Goods struct {
CategoryInfo CategoryInfo `json:"categoryInfo"` //类目信息
Comments int64 `json:"comments"` //评论数
CommissionInfo CommissionInfo `json:"commissionInfo"` //佣金信息
CouponInfo CouponInfo `json:"couponInfo"` //优惠券信息
ImageInfo ImageInfo `json:"imageInfo"` //图片信息
InOrderCount30Days int64 `json:"inOrderCount30Days"` //30天引单数量
MaterialURL string `json:"materialUrl"` //商品落地页
PriceInfo PriceInfo `json:"priceInfo"` //价格信息
ShopInfo ShopInfo `json:"shopInfo"` //店铺信息
SkuID int64 `json:"skuId"` //商品ID
SkuName string `json:"skuName"` //商品名称
IsHot int64 `json:"isHot"` //已废弃,请勿使用
Spuid int64 `json:"spuid"` //spuid,其值为同款商品的主skuid
BrandCode string `json:"brandCode"` //品牌code
BrandName string `json:"brandName"` //品牌名
Owner string `json:"owner"` //g=自营,p=pop
PinGouInfo PinGouInfo `json:"pinGouInfo"` //拼购信息
ResourceInfo ResourceInfo `json:"resourceInfo"` //资源信息
InOrderCount30DaysSku int64 `json:"inOrderCount30DaysSku"` //30天引单数量(sku维度)
SeckillInfo SeckillInfo `json:"seckillInfo"` //秒杀信息
JxFlags []int64 `json:"jxFlags"` //京喜商品类型,1京喜、2京喜工厂直供、3京喜优选(包含3时可在京东APP购买)
VideoInfo VideoInfo `json:"videoInfo"` //视频信息
DocumentInfo DocumentInfo `json:"documentInfo"` //段子信息
BookInfo BookInfo `json:"bookInfo"` //图书信息
ForbidTypes []int64 `json:"forbidTypes"` // 0普通商品,10微信京东购物小程序禁售,11微信京喜小程序禁售
DeliveryType int64 `json:"deliveryType"` //京东配送 1:是,0:不是
SkuLabelInfo SkuLabelInfo `json:"skuLabelInfo"` //商品标签
PromotionLabelInfoList []PromotionLabelInfo `json:"promotionLabelInfoList"` //商品促销标签集
SecondPriceInfoList []SecondPriceInfo `json:"secondPriceInfoList"` //双价格
}
type GoodsInfo ¶
type GoodsInfo struct {
SkuID int64 `json:"skuId"` // 商品ID
GoodsName string `json:"goodsName"` //商品名称
UnitPrice float64 `json:"unitPrice"` //商品单价即京东价
MaterialURL string `json:"materialUrl"` //商品落地页
WlUnitPrice float64 `json:"wlUnitPrice"` //商品无线京东价(单价为-1表示未查询到该商品单价)
CommisionRatioWl float64 `json:"commisionRatioWl"` //无线佣金比例
CommisionRatioPC float64 `json:"commisionRatioPc"` //PC佣金比例
ImgURL string `json:"imgUrl"` //图片地址
Cid int64 `json:"cid"` //一级类目ID
CidName string `json:"cidName"` //一级类目名称
Cid2 int64 `json:"cid2"` //二级类目ID
Cid2Name string `json:"cid2Name"` //二级类目名称
Cid3 int64 `json:"cid3"` //三级类目ID
Cid3Name string `json:"cid3Name"` //三级类目名称
IsFreeFreightRisk int64 `json:"isFreeFreightRisk"` //是否支持运费险(1:是,0:否)
IsSeckill int64 `json:"isSeckill"` //是否秒杀(1:是,0:否)
IsFreeShipping int64 `json:"isFreeShipping"` //是否包邮(1:是,0:否,2:自营商品遵从主站包邮规则)
InOrderCount int64 `json:"inOrderCount"` //30天引单数量
Vid int64 `json:"vid"` //商家ID
ShopID int64 `json:"shopId"` //店铺ID
IsJdSale int64 `json:"isJdSale"` //是否自营(1:是,0:否)
StartDate int64 `json:"startDate"` //推广开始日期(时间戳,毫秒)
EndDate int64 `json:"endDate"` //推广结束日期(时间戳,毫秒)
}
type JdUnionErrResp ¶
type JdUnionErrResp struct {
ErrorResponse ErrorResponse `json:"error_response"`
}
type JdUnionOpenActivityQueryData ¶
type JdUnionOpenActivityQueryData struct {
ActStatus int `json:"actStatus"`
Advantage string `json:"advantage"`
Content string `json:"content"`
DownloadCode string `json:"downloadCode"`
DownloadUrl string `json:"downloadUrl"`
EndTime int `json:"endTime"`
ID int `json:"id"`
PlatformType int `json:"platformType"`
StartTime int `json:"startTime"`
Tag string `json:"tag"`
Title string `json:"title"`
UpdateTime int `json:"updateTime"`
UrlM string `json:"urlM"`
UrlPC string `json:"urlPC"`
CategoryList []*JdUnionOpenActivityQueryCate `json:"categoryList"`
ImgList []*JdUnionOpenActivityQueryImage `json:"imgList"`
}
type JdUnionOpenActivityQueryResult ¶
type JdUnionOpenActivityQueryResult struct {
Code int64 `json:"code"`
Data []*JdUnionOpenActivityQueryData `json:"data"`
Message string `json:"message"`
TotalCount int `json:"totalCount"`
RequestID string `json:"requestId"`
}
type JdUnionOpenActivityQueryTopLevel ¶
type JdUnionOpenActivityQueryTopLevel struct {
JdUnionOpenActivityQueryResponse JdUnionOpenActivityQueryResponse `json:"jd_union_open_activity_query_responce"`
}
type JdUnionOpenCategoryGoodsGetTopLevel ¶
type JdUnionOpenCategoryGoodsGetTopLevel struct {
JdUnionOpenCategoryGoodsGetResponse JdUnionOpenCategoryGoodsGetResponse `json:"jd_union_open_category_goods_get_responce"`
}
type JdUnionOpenCouponGiftGetResult ¶
type JdUnionOpenCouponGiftGetResult struct {
Code int64 `json:"code"`
Data *CouponGift `json:"data"`
Message string `json:"message"`
RequestID string `json:"requestId"`
}
type JdUnionOpenCouponGiftGetTopLevel ¶
type JdUnionOpenCouponGiftGetTopLevel struct {
JdUnionOpenCouponGiftGetResponse JdUnionOpenCouponGiftGetResponse `json:"jd_union_open_coupon_gift_get_responce"`
}
type JdUnionOpenCouponGiftStopTopLevel ¶
type JdUnionOpenCouponGiftStopTopLevel struct {
JdUnionOpenCouponGiftStopResponse JdUnionOpenCouponGiftStopResponse `json:"jd_union_open_coupon_gift_stop_responce"`
}
type JdUnionOpenGoodsBigfieldQueryTopLevel ¶
type JdUnionOpenGoodsBigfieldQueryTopLevel struct {
JdUnionOpenGoodsBigfieldQueryResponse JdUnionOpenGoodsBigfieldQueryResponse `json:"jd_union_open_goods_bigfield_query_responce"`
}
type JdUnionOpenGoodsJingfenQueryTopLevel ¶
type JdUnionOpenGoodsJingfenQueryTopLevel struct {
JdUnionOpenGoodsJingfenQueryResponse JdUnionOpenGoodsJingfenQueryResponse `json:"jd_union_open_goods_jingfen_query_responce"`
}
type JdUnionOpenGoodsMaterialQueryTopLevel ¶
type JdUnionOpenGoodsMaterialQueryTopLevel struct {
JdUnionOpenGoodsMaterialQueryResponse JdUnionOpenGoodsMaterialQueryResponse `json:"jd_union_open_goods_material_query_responce"`
}
type JdUnionOpenGoodsPromotiongoodsinfoQueryTopLevel ¶
type JdUnionOpenGoodsPromotiongoodsinfoQueryTopLevel struct {
JdUnionOpenGoodsPromotiongoodsinfoQueryResponse JdUnionOpenGoodsPromotiongoodsinfoQueryResponse `json:"jd_union_open_goods_promotiongoodsinfo_query_responce"`
}
type JdUnionOpenGoodsQueryResponseTopLevel ¶
type JdUnionOpenGoodsQueryResponseTopLevel struct {
JdUnionOpenGoodsQueryResponse JdUnionOpenGoodsQueryResponse `json:"jd_union_open_goods_query_responce"`
}
type JdUnionOpenOrderQueryResponseTopLevel ¶
type JdUnionOpenOrderQueryResponseTopLevel struct {
JdUnionOpenOrderQueryResponse JdUnionOpenOrderQueryResponse `json:"jd_union_open_order_query_responce"`
}
type JdUnionOpenOrderRowQueryResponseTopLevel ¶
type JdUnionOpenOrderRowQueryResponseTopLevel struct {
JdUnionOpenOrderRowQueryResponse JdUnionOpenOrderRowQueryResponse `json:"jd_union_open_order_row_query_responce"`
}
type JdUnionOpenPromotionBysubunionidGetResult ¶
type JdUnionOpenPromotionBysubunionidGetResult struct {
Code int64 `json:"code"`
Data PromotionUrl `json:"data"`
Message string `json:"message"`
RequestID string `json:"requestId"`
}
type JdUnionOpenPromotionBysubunionidGetTopLevel ¶
type JdUnionOpenPromotionBysubunionidGetTopLevel struct {
JdUnionOpenPromotionBysubunionidGetResponse JdUnionOpenPromotionBysubunionidGetResponse `json:"jd_union_open_promotion_bysubunionid_get_responce"`
}
type JdUnionOpenPromotionCommonGetResult ¶
type JdUnionOpenPromotionCommonGetResult struct {
Code int64 `json:"code"`
Data PromotionCommonURL `json:"data"`
Message string `json:"message"`
RequestID string `json:"requestId"`
}
type JdUnionOpenPromotionCommonGetTopLevel ¶
type JdUnionOpenPromotionCommonGetTopLevel struct {
JdUnionOpenPromotionCommonGetResponse JdUnionOpenPromotionCommonGetResponse `json:"jd_union_open_promotion_common_get_responce"`
}
type JdUnionOpenStatisticsGiftcouponQueryResult ¶
type JdUnionOpenStatisticsGiftcouponQueryResult struct {
Code int64 `json:"code"`
Message string `json:"message"`
Data []*CouponEffectData `json:"data"`
RequestID string `json:"requestId"`
}
type JdUnionOpenStatisticsGiftcouponQueryTopLevel ¶
type JdUnionOpenStatisticsGiftcouponQueryTopLevel struct {
JdUnionOpenStatisticsGiftcouponQueryResponse JdUnionOpenStatisticsGiftcouponQueryResponse `json:"jd_union_open_statistics_giftcoupon_query_responce"`
}
type Order ¶
type Order struct {
Ext1 string `json:"ext1"`
FinishTime int64 `json:"finishTime"`
OrderEmt int64 `json:"orderEmt"`
OrderID int64 `json:"orderId"`
OrderTime int64 `json:"orderTime"`
ParentID int64 `json:"parentId"`
PayMonth int64 `json:"payMonth"`
Plus int64 `json:"plus"`
PopID int64 `json:"popId"`
SkuList []SkuList `json:"skuList"`
UnionID int64 `json:"unionId"`
ValidCode int64 `json:"validCode"`
}
type OrderRow ¶
type OrderRow struct {
ActualCosPrice decimal.Decimal `json:"actualCosPrice"`
ActualFee decimal.Decimal `json:"actualFee"`
BalanceExt string `json:"balanceExt"`
Cid1 int `json:"cid1"`
Cid2 int `json:"cid2"`
Cid3 int `json:"cid3"`
CommissionRate decimal.Decimal `json:"commissionRate"`
CpActID int `json:"cpActId"`
EstimateCosPrice decimal.Decimal `json:"estimateCosPrice"`
EstimateFee decimal.Decimal `json:"estimateFee"`
ExpressStatus int `json:"expressStatus"`
Ext1 string `json:"ext1"`
FinalRate decimal.Decimal `json:"finalRate"`
FinishTime string `json:"finishTime"`
GiftCouponKey string `json:"giftCouponKey"`
GiftCouponOcsAmount decimal.Decimal `json:"giftCouponOcsAmount"`
GoodsInfo *OrderRowGoodsInfo `json:"goodsInfo"`
ID string `json:"id"`
ModifyTime string `json:"modifyTime"`
OrderEmt int `json:"orderEmt"`
OrderID int `json:"orderId"`
OrderTime string `json:"orderTime"`
ParentID int `json:"parentId"`
PayMonth int `json:"payMonth"`
Pid string `json:"pid"`
Plus int `json:"plus"`
PopId int `json:"popId"`
PositionId int `json:"positionId"`
Price decimal.Decimal `json:"price"`
ProPriceAmount decimal.Decimal `json:"proPriceAmount"`
Rid int `json:"rid"`
SiteId int `json:"siteId"`
SkuFrozenNum int `json:"skuFrozenNum"`
SkuId int `json:"skuId"`
SkuName string `json:"skuName"`
SkuNum int `json:"skuNum"`
SkuReturnNum int `json:"skuReturnNum"`
SubSideRate decimal.Decimal `json:"subSideRate"`
SubUnionID string `json:"subUnionId"`
SubSidyRate decimal.Decimal `json:"subsidyRate"`
TraceType int `json:"traceType"`
UnionAlias string `json:"unionAlias"`
UnionId int `json:"unionId"`
UnionRole int `json:"unionRole"`
UnionTag string `json:"unionTag"`
ValidCode int `json:"validCode"`
}
type OrderRowGoodsInfo ¶
type PinGouInfo ¶
type PinGouInfo struct {
PingouPrice decimal.Decimal `json:"pingouPrice"` //拼购价格
PingouTmCount int64 `json:"pingouTmCount"` //拼购成团所需人数
PingouURL string `json:"pingouUrl"` //拼购落地页url
PingouEndTime int64 `json:"pingouEndTime"` //拼购结束时间(时间戳,毫秒)
PingouStartTime int64 `json:"pingouStartTime"` //拼购开始时间(时间戳,毫秒)
}
type PingGouInfo ¶
type PriceInfo ¶
type PriceInfo struct {
Price decimal.Decimal `json:"price"` //商品价格
LowestPrice decimal.Decimal `json:"lowestPrice"` //促销价
LowestPriceType int64 `json:"lowestPriceType"` //促销价类型,1:无线价格;2:拼购价格; 3:秒杀价格
LowestCouponPrice decimal.Decimal `json:"lowestCouponPrice"` //券后价(有无券都返回此字段)
HistoryPriceDay int64 `json:"historyPriceDay"` //历史最低价天数(例:当前券后价最近180天最低)
}
type PromotionCommonURL ¶
type PromotionCommonURL struct {
ClickURL string `json:"clickURL"`
}
type PromotionLabelInfo ¶
type PromotionUrl ¶
type ResourceInfo ¶
type SeckillInfo ¶
type SecondPriceInfo ¶
type ShopInfo ¶
type ShopInfo struct {
ShopID int64 `json:"shopId"` //店铺Id
ShopName string `json:"shopName"` //店铺名称(或供应商名称)
ShopLevel decimal.Decimal `json:"shopLevel"` //店铺评分
ShopLabel string `json:"shopLabel"` // 1:京东好店 https://img12.360buyimg.com/schoolbt/jfs/t1/80828/19/2993/908/5d14277aEbb134d76/889d5265315e11ed.png
UserEvaluateScore string `json:"userEvaluateScore"` // 用户评价评分(仅pop店铺有值)
CommentFactorScoreRankGrade string `json:"commentFactorScoreRankGrade"` // 用户评价评级(仅pop店铺有值)
LogisticsLvyueScore string `json:"logisticsLvyueScore"` // 物流履约评分(仅pop店铺有值)
LogisticsFactorScoreRankGrade string `json:"logisticsFactorScoreRankGrade"` // 物流履约评级(仅pop店铺有值)
AfterServiceScore string `json:"logisticsFactorScoreRankGrade"` // 售后服务评分(仅pop店铺有值)
AfsFactorScoreRankGrade string `json:"afsFactorScoreRankGrade"` // 售后服务评级(仅pop店铺有值)
ScoreRankRate string `json:"scoreRankRate"` // 店铺风向标(仅pop店铺有值)
}
type SkuLabelInfo ¶
type SkuLabelInfo struct {
Is7ToReturn int64 `json:"is7ToReturn"` //0:不支持; 1或null:支持7天无理由退货; 2:支持90天无理由退货; 4:支持15天无理由退货; 6:支持30天无理由退货;
Fxg int64 `json:"fxg"` //1:放心购商品
FxgServiceList []CharacteristicServiceInfo `json:"fxgServiceList"` //放心购商品子标签集合
}
type SkuList ¶
type SkuList struct {
ActualCosPrice float64 `json:"actualCosPrice"`
ActualFee float64 `json:"actualFee"`
Cid1 int64 `json:"cid1"`
Cid2 int64 `json:"cid2"`
Cid3 int64 `json:"cid3"`
CommissionRate float64 `json:"commissionRate"`
EstimateCosPrice float64 `json:"estimateCosPrice"`
EstimateFee float64 `json:"estimateFee"`
Ext1 string `json:"ext1"`
FinalRate float64 `json:"finalRate"`
FrozenSkuNum int64 `json:"frozenSkuNum"`
PayMonth int64 `json:"payMonth"`
PID string `json:"pid"`
PopID int64 `json:"popId"`
PositionID int64 `json:"positionId"`
Price float64 `json:"price"`
SiteID int64 `json:"siteId"`
SkuID int64 `json:"skuId"`
SkuName string `json:"skuName"`
SkuNum int64 `json:"skuNum"`
SkuReturnNum int64 `json:"skuReturnNum"`
SubSideRate float64 `json:"subSideRate"`
SubUnionID string `json:"subUnionId"`
SubsidyRate float64 `json:"subsidyRate"`
TraceType int64 `json:"traceType"`
UnionAlias string `json:"unionAlias"`
UnionTag string `json:"unionTag"`
UnionTrafficGroup int64 `json:"unionTrafficGroup"`
ValidCode int64 `json:"validCode"`
}
type Video ¶
type Video struct {
Width int64 `json:"width"` // 宽
High int64 `json:"high"` // 高
ImageUrl string `json:"imageUrl"` //视频图片地址
VideoType int64 `json:"videoType"` // 1:主图,2:商详
PlayType string `json:"playType"` // low:标清,high:高清
Duration int64 `json:"duration"` // 时长(单位:s)
PlayUrl string `json:"playUrl"` //播放地址
}
Source Files
¶
- jd.union.open.activity.query.go
- jd.union.open.category.goods.get.go
- jd.union.open.coupon.gift.get.go
- jd.union.open.coupon.gift.stop.go
- jd.union.open.goods.bigfield.query.go
- jd.union.open.goods.jingfen.query.go
- jd.union.open.goods.material.query.go
- jd.union.open.goods.promotiongoodsinfo.query.go
- jd.union.open.goods.query.go
- jd.union.open.order.query.go
- jd.union.open.order.row.query.go
- jd.union.open.promotion.bysubunionin.get.go
- jd.union.open.promotion.common.get.go
- jd.union.open.statistics.giftcoupon.query.go
- jd_sdk.go
- js_sign.go
Click to show internal directories.
Click to hide internal directories.