jdsdk

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

README

jdsdk

京东联盟SDK

部分接口为为高级接口,需要联盟企业账号发送邮件申请

API列表
通用API
高级API
运行测试用例

需要在jd.union_test.go中填入自己的appKey,appSecret

go test -v *.go
接口调用
    package main 

    import (
        "github.com/irebit/jdsdk"
        "log"
    )

    var app = &jdsdk.App{
        ID:     "xxxxxx",
        Key:    "xxxxxx",
        Secret: "xxxxxx",
    }

    res, err := app.JdUnionOpenCategoryGoodsGet(map[string]interface{}{
        "parentId": 0,
        "grade":    0,
    })

    log.Println(res, err)

Documentation

Index

Constants

View Source
const RouterURL = "https://api.jd.com/routerjson"

Variables

This section is empty.

Functions

func GetSign

func GetSign(clientSecret string, p map[string]string) string

func GetString

func GetString(i interface{}) string

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)

func (*App) Request

func (app *App) Request(method string, param interface{}) ([]byte, error)

func (*App) Values

func (app *App) Values(params map[string]interface{}) url.Values

type BookInfo

type BookInfo struct {
	Isbn string `json:"isbn"`
}

type Cate

type Cate struct {
	Grade    int64  `json:"grade"`
	Name     string `json:"name"`
	ID       int64  `json:"id"`
	ParentID int64  `json:"parentId"`
}

type CategoryInfo

type CategoryInfo struct {
	Cid1     int64  `json:"cid1"`
	Cid1Name string `json:"cid1Name"`
	Cid2     int64  `json:"cid2"`
	Cid2Name string `json:"cid2Name"`
	Cid3     int64  `json:"cid3"`
	Cid3Name string `json:"cid3Name"`
}

type CharacteristicServiceInfo

type CharacteristicServiceInfo struct {
	ServiceName string `json:"serviceName"` //服务名称
}

type CommissionInfo

type CommissionInfo struct {
	Commission          decimal.Decimal `json:"commission"`          //佣金
	CommissionShare     decimal.Decimal `json:"commissionShare"`     //佣金比例
	CouponCommission    decimal.Decimal `json:"couponCommission"`    //券后佣金,(促销价-优惠券面额)*佣金比例
	PlusCommissionShare decimal.Decimal `json:"plusCommissionShare"` //plus佣金比例,plus用户购买推广者能获取到的佣金比例
	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"`
	Share            int             `json:"share"`
	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 DocumentInfo struct {
	Document string `json:"document"` //描述文案
	Discount string `json:"discount"` //优惠力度文案
}

type ErrorResponse

type ErrorResponse struct {
	Code string `json:"code"`
	Msg  string `json:"zh_desc"`
}

type Goods

type Goods struct {
	CategoryInfo           CategoryInfo         `json:"categoryInfo"`           //类目信息
	Comments               int64                `json:"comments"`               //评论数
	CommissionInfo         CommissionInfo       `json:"commissionInfo"`         //佣金信息
	CouponInfo             CouponInfo           `json:"couponInfo"`             //优惠券信息
	GoodCommentsShare      decimal.Decimal      `json:"goodCommentsShare"`      //商品好评率
	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 ImageInfo

type ImageInfo struct {
	ImageList []ImageList `json:"imageList"`
}

type ImageList

type ImageList struct {
	URL string `json:"url"`
}

type JdUnionErrResp

type JdUnionErrResp struct {
	ErrorResponse ErrorResponse `json:"error_response"`
}

type JdUnionOpenActivityQueryCate

type JdUnionOpenActivityQueryCate struct {
	CategoryID int `json:"categoryId"`
	Type       int `json:"type"`
}

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 JdUnionOpenActivityQueryImage

type JdUnionOpenActivityQueryImage struct {
	ImgName     string `json:"imgName"`
	ImgUrl      string `json:"imgUrl"`
	WidthHeight string `json:"widthHeight"`
}

type JdUnionOpenActivityQueryResponse

type JdUnionOpenActivityQueryResponse struct {
	Result string `json:"queryResult"`
	Code   string `json:"code"`
}

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 JdUnionOpenCategoryGoodsGetResponse

type JdUnionOpenCategoryGoodsGetResponse struct {
	Result string `json:"getResult"`
	Code   string `json:"code"`
}

type JdUnionOpenCategoryGoodsGetResult

type JdUnionOpenCategoryGoodsGetResult struct {
	Code      int64  `json:"code"`
	Data      []Cate `json:"data"`
	Message   string `json:"message"`
	RequestID string `json:"requestId"`
}

type JdUnionOpenCategoryGoodsGetTopLevel

type JdUnionOpenCategoryGoodsGetTopLevel struct {
	JdUnionOpenCategoryGoodsGetResponse JdUnionOpenCategoryGoodsGetResponse `json:"jd_union_open_category_goods_get_responce"`
}

type JdUnionOpenCouponGiftGetResponse

type JdUnionOpenCouponGiftGetResponse struct {
	Result string `json:"getResult"`
	Code   string `json:"code"`
}

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 JdUnionOpenCouponGiftStopResponse

type JdUnionOpenCouponGiftStopResponse struct {
	Result string `json:"queryResult"`
	Code   string `json:"code"`
}

type JdUnionOpenCouponGiftStopResult

type JdUnionOpenCouponGiftStopResult struct {
	Code      int64  `json:"code"`
	Message   string `json:"message"`
	RequestID string `json:"requestId"`
}

type JdUnionOpenCouponGiftStopTopLevel

type JdUnionOpenCouponGiftStopTopLevel struct {
	JdUnionOpenCouponGiftStopResponse JdUnionOpenCouponGiftStopResponse `json:"jd_union_open_coupon_gift_stop_responce"`
}

type JdUnionOpenGoodsBigfieldQueryResponse

type JdUnionOpenGoodsBigfieldQueryResponse struct {
	Result string `json:"queryResult"`
	Code   string `json:"code"`
}

type JdUnionOpenGoodsBigfieldQueryResult

type JdUnionOpenGoodsBigfieldQueryResult struct {
	Code      int64         `json:"code"`
	Data      []interface{} `json:"data"`
	Message   string        `json:"message"`
	RequestID string        `json:"requestId"`
}

type JdUnionOpenGoodsBigfieldQueryTopLevel

type JdUnionOpenGoodsBigfieldQueryTopLevel struct {
	JdUnionOpenGoodsBigfieldQueryResponse JdUnionOpenGoodsBigfieldQueryResponse `json:"jd_union_open_goods_bigfield_query_responce"`
}

type JdUnionOpenGoodsJingfenQueryResponse

type JdUnionOpenGoodsJingfenQueryResponse struct {
	Result string `json:"queryResult"`
	Code   string `json:"code"`
}

type JdUnionOpenGoodsJingfenQueryTopLevel

type JdUnionOpenGoodsJingfenQueryTopLevel struct {
	JdUnionOpenGoodsJingfenQueryResponse JdUnionOpenGoodsJingfenQueryResponse `json:"jd_union_open_goods_jingfen_query_responce"`
}

type JdUnionOpenGoodsMaterialQueryResponse

type JdUnionOpenGoodsMaterialQueryResponse struct {
	Result string `json:"queryResult"`
	Code   string `json:"code"`
}

type JdUnionOpenGoodsMaterialQueryTopLevel

type JdUnionOpenGoodsMaterialQueryTopLevel struct {
	JdUnionOpenGoodsMaterialQueryResponse JdUnionOpenGoodsMaterialQueryResponse `json:"jd_union_open_goods_material_query_responce"`
}

type JdUnionOpenGoodsPromotiongoodsinfoQueryResponse

type JdUnionOpenGoodsPromotiongoodsinfoQueryResponse struct {
	Result string `json:"queryResult"`
	Code   string `json:"code"`
}

type JdUnionOpenGoodsPromotiongoodsinfoQueryResult

type JdUnionOpenGoodsPromotiongoodsinfoQueryResult struct {
	Code      int64       `json:"code"`
	Data      []GoodsInfo `json:"data"`
	Message   string      `json:"message"`
	RequestID string      `json:"requestId"`
}

type JdUnionOpenGoodsPromotiongoodsinfoQueryTopLevel

type JdUnionOpenGoodsPromotiongoodsinfoQueryTopLevel struct {
	JdUnionOpenGoodsPromotiongoodsinfoQueryResponse JdUnionOpenGoodsPromotiongoodsinfoQueryResponse `json:"jd_union_open_goods_promotiongoodsinfo_query_responce"`
}

type JdUnionOpenGoodsQueryResponse

type JdUnionOpenGoodsQueryResponse struct {
	Result string `json:"queryResult"`
	Code   string `json:"code"`
}

type JdUnionOpenGoodsQueryResponseTopLevel

type JdUnionOpenGoodsQueryResponseTopLevel struct {
	JdUnionOpenGoodsQueryResponse JdUnionOpenGoodsQueryResponse `json:"jd_union_open_goods_query_responce"`
}

type JdUnionOpenGoodsQueryResult

type JdUnionOpenGoodsQueryResult struct {
	Code       int64   `json:"code"`
	Data       []Goods `json:"data"`
	Message    string  `json:"message"`
	RequestID  string  `json:"requestId"`
	TotalCount int64   `json:"totalCount"`
}

type JdUnionOpenOrderQueryResponse

type JdUnionOpenOrderQueryResponse struct {
	Result string `json:"queryResult"`
	Code   string `json:"code"`
}

type JdUnionOpenOrderQueryResponseTopLevel

type JdUnionOpenOrderQueryResponseTopLevel struct {
	JdUnionOpenOrderQueryResponse JdUnionOpenOrderQueryResponse `json:"jd_union_open_order_query_responce"`
}

type JdUnionOpenOrderQueryResult

type JdUnionOpenOrderQueryResult struct {
	Code      int64   `json:"code"`
	Data      []Order `json:"data"`
	HasMore   bool    `json:"hasMore"`
	Message   string  `json:"message"`
	RequestID string  `json:"requestId"`
}

type JdUnionOpenOrderRowQueryResponse

type JdUnionOpenOrderRowQueryResponse struct {
	Result string `json:"queryResult"`
	Code   string `json:"code"`
}

type JdUnionOpenOrderRowQueryResponseTopLevel

type JdUnionOpenOrderRowQueryResponseTopLevel struct {
	JdUnionOpenOrderRowQueryResponse JdUnionOpenOrderRowQueryResponse `json:"jd_union_open_order_row_query_responce"`
}

type JdUnionOpenOrderRowQueryResult

type JdUnionOpenOrderRowQueryResult struct {
	Code      int64       `json:"code"`
	Data      []*OrderRow `json:"data"`
	HasMore   bool        `json:"hasMore"`
	Message   string      `json:"message"`
	RequestID string      `json:"requestId"`
}

type JdUnionOpenPromotionBysubunionidGetResponse

type JdUnionOpenPromotionBysubunionidGetResponse struct {
	Result string `json:"queryResult"`
	Code   string `json:"code"`
}

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 JdUnionOpenPromotionCommonGetResponse

type JdUnionOpenPromotionCommonGetResponse struct {
	Result string `json:"getResult"`
	Code   string `json:"code"`
}

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 JdUnionOpenStatisticsGiftcouponQueryResponse

type JdUnionOpenStatisticsGiftcouponQueryResponse struct {
	Result string `json:"queryResult"`
	Code   string `json:"code"`
}

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 OrderRowGoodsInfo struct {
	ImageUrl  string `json:"imageUrl"`
	MainSkuId int    `json:"mainSkuId"`
	Owner     string `json:"owner"`
	ProductId int    `json:"productId"`
	ShopId    int    `json:"shopId"`
	ShopName  string `json:"shopName"`
}

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 PingGouInfo struct {
	PingouPrice   decimal.Decimal `json:"pingouPrice"`
	PingouTmCount int64           `json:"pingouTmCount"`
	PingouURL     string          `json:"pingouUrl"`
}

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 PromotionLabelInfo struct {
	PromotionLabel   string `json:"promotionLabel"`   //商品促销文案
	LabelName        string `json:"labelName"`        //促销标签名称
	StartTime        int64  `json:"startTime"`        //促销开始时间
	EndTime          int64  `json:"endTime"`          //促销结束时间
	PromotionLabelId int64  `json:"promotionLabelId"` //促销ID
}

type PromotionUrl

type PromotionUrl struct {
	ClickURL string `json:"clickURL"`
	ShortURL string `json:"shortURL"`
}

type ResourceInfo

type ResourceInfo struct {
	EliteId   int64  `json:"eliteId"`   //频道id
	EliteName string `json:"eliteName"` //频道名称
}

type SeckillInfo

type SeckillInfo struct {
	SeckillOriPrice  decimal.Decimal `json:"seckillOriPrice"`  //秒杀价原价
	SeckillPrice     decimal.Decimal `json:"seckillPrice"`     //秒杀价
	SeckillStartTime int64           `json:"seckillStartTime"` //秒杀开始时间(时间戳,毫秒)
	SeckillEndTime   int64           `json:"seckillEndTime"`   //秒杀结束时间(时间戳,毫秒)
}

type SecondPriceInfo

type SecondPriceInfo struct {
	SecondPriceType string          `json:"secondPriceType"` //双价格类型:18新人价
	SecondPrice     decimal.Decimal `json:"secondPrice"`     //价格
}

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"`   //播放地址
}

type VideoInfo

type VideoInfo struct {
	VideoList []Video `json:"videoList"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL