jd

package
v1.0.177 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogTable = "jd"
)

Variables

This section is empty.

Functions

func NewParamsWithType

func NewParamsWithType(_method string, params ...*gorequest.Params) *gorequest.Params

func SetCustomParameters added in v1.0.172

func SetCustomParameters(p *gorequest.Params, uid string, sid string) *gorequest.Params

Types

type Client added in v1.0.47

type Client struct {
	// contains filtered or unexported fields
}

Client 实例

func NewClient added in v1.0.47

func NewClient(config *ClientConfig) (*Client, error)

NewClient 创建实例化

func (*Client) ConfigSLogClientFun added in v1.0.162

func (c *Client) ConfigSLogClientFun(apiSLogFun golog.ApiSLogFun)

ConfigSLogClientFun 日志配置

func (*Client) DefaultHttp added in v1.0.177

func (c *Client) DefaultHttp()

DefaultHttp 默认请求

func (*Client) GetAppKey added in v1.0.47

func (c *Client) GetAppKey() string

GetAppKey 应用Key

func (*Client) GetPositionId added in v1.0.47

func (c *Client) GetPositionId() string

GetPositionId 推广位id

func (*Client) GetSecretKey added in v1.0.47

func (c *Client) GetSecretKey() string

GetSecretKey 密钥

func (*Client) GetSiteId added in v1.0.47

func (c *Client) GetSiteId() string

GetSiteId 网站ID/APP ID

func (*Client) Post added in v1.0.109

func (c *Client) Post(ctx context.Context, _method string, notMustParams ...*gorequest.Params) ([]byte, error)

func (*Client) SetHttp added in v1.0.177

func (c *Client) SetHttp(app *gorequest.App)

SetHttp 配置请求

func (*Client) Sign added in v1.0.47

func (c *Client) Sign(p *gorequest.Params)

func (*Client) UnionOpenActivityQuery added in v1.0.47

func (c *Client) UnionOpenActivityQuery(ctx context.Context, notMustParams ...*gorequest.Params) *UnionOpenActivityQueryResult

UnionOpenActivityQuery 活动查询接口 https://union.jd.com/openplatform/api/v2?apiName=jd.union.open.activity.query

func (*Client) UnionOpenCategoryGoodsGet added in v1.0.47

func (c *Client) UnionOpenCategoryGoodsGet(ctx context.Context, notMustParams ...*gorequest.Params) *UnionOpenCategoryGoodsGetResult

UnionOpenCategoryGoodsGet 商品类目查询接口 https://union.jd.com/openplatform/api/v2?apiName=jd.union.open.category.goods.get

func (*Client) UnionOpenGoodsBigfieldQuery added in v1.0.47

func (c *Client) UnionOpenGoodsBigfieldQuery(ctx context.Context, notMustParams ...*gorequest.Params) *UnionOpenGoodsBigfieldQueryResult

UnionOpenGoodsBigfieldQuery 商品详情查询接口 https://union.jd.com/openplatform/api/v2?apiName=jd.union.open.goods.bigfield.query

func (*Client) UnionOpenGoodsJIngFenQuery added in v1.0.47

func (c *Client) UnionOpenGoodsJIngFenQuery(ctx context.Context, notMustParams ...*gorequest.Params) *UnionOpenGoodsJIngFenQueryResult

UnionOpenGoodsJIngFenQuery 京粉精选商品查询接口 https://union.jd.com/openplatform/api/v2?apiName=jd.union.open.goods.jingfen.query

func (*Client) UnionOpenGoodsMaterialQuery added in v1.0.47

func (c *Client) UnionOpenGoodsMaterialQuery(ctx context.Context, notMustParams ...*gorequest.Params) *UnionOpenGoodsMaterialQueryResult

UnionOpenGoodsMaterialQuery 猜你喜欢商品推荐 https://union.jd.com/openplatform/api/v2?apiName=jd.union.open.goods.material.query

func (*Client) UnionOpenGoodsPromotionGoodsInfoQuery added in v1.0.47

func (c *Client) UnionOpenGoodsPromotionGoodsInfoQuery(ctx context.Context, notMustParams ...*gorequest.Params) *UnionOpenGoodsPromotionGoodsInfoQueryResult

UnionOpenGoodsPromotionGoodsInfoQuery 根据skuid查询商品信息接口 https://union.jd.com/openplatform/api/v2?apiName=jd.union.open.goods.promotiongoodsinfo.query

func (*Client) UnionOpenOrderQuery added in v1.0.47

func (c *Client) UnionOpenOrderQuery(ctx context.Context, notMustParams ...*gorequest.Params) *UnionOpenOrderQueryResult

UnionOpenOrderQuery 订单查询接口 https://union.jd.com/openplatform/api/v2?apiName=jd.union.open.order.query

func (*Client) UnionOpenOrderRowQuery added in v1.0.47

func (c *Client) UnionOpenOrderRowQuery(ctx context.Context, notMustParams ...*gorequest.Params) *UnionOpenOrderRowQueryResult

UnionOpenOrderRowQuery 订单行查询接口 https://union.jd.com/openplatform/api/v2?apiName=jd.union.open.order.row.query

func (*Client) UnionOpenPromotionBySubUnionIdGet added in v1.0.47

func (c *Client) UnionOpenPromotionBySubUnionIdGet(ctx context.Context, notMustParams ...*gorequest.Params) *UnionOpenPromotionBySubUnionIdGetResult

UnionOpenPromotionBySubUnionIdGet 社交媒体获取推广链接接口【申请】 https://union.jd.com/openplatform/api/v2?apiName=jd.union.open.promotion.bysubunionid.get

func (*Client) UnionOpenPromotionCommonGet added in v1.0.47

func (c *Client) UnionOpenPromotionCommonGet(ctx context.Context, notMustParams ...*gorequest.Params) *UnionOpenPromotionCommonGetResult

UnionOpenPromotionCommonGet 网站/APP获取推广链接接口 https://union.jd.com/openplatform/api/v2?apiName=jd.union.open.promotion.common.get

type ClientConfig added in v1.0.52

type ClientConfig struct {
	AppKey     string // 应用Key
	SecretKey  string // 密钥
	SiteId     string // 网站ID/APP ID
	PositionId string // 推广位id
}

ClientConfig 实例配置

type UnionOpenActivityQueryQueryResult added in v1.0.44

type UnionOpenActivityQueryQueryResult struct {
	Code int `json:"code"`
	Data []struct {
		ActStatus    int    `json:"actStatus"`
		Advantage    string `json:"advantage"`
		CategoryList []struct {
			CategoryId int `json:"categoryId"`
			Type       int `json:"type"`
		} `json:"categoryList,omitempty"`
		Content      string `json:"content"`
		DownloadCode string `json:"downloadCode"`
		DownloadUrl  string `json:"downloadUrl"`
		EndTime      int64  `json:"endTime"`
		Id           int    `json:"id"`
		ImgList      []struct {
			ImgName     string `json:"imgName"`
			ImgUrl      string `json:"imgUrl"`
			WidthHeight string `json:"widthHeight"`
		} `json:"imgList,omitempty"`
		PlatformType       int    `json:"platformType"`
		PromotionEndTime   int64  `json:"promotionEndTime,omitempty"`
		PromotionStartTime int64  `json:"promotionStartTime,omitempty"`
		Recommend          int    `json:"recommend,omitempty"`
		StartTime          int64  `json:"startTime"`
		Tag                string `json:"tag"`
		Title              string `json:"title"`
		UpdateTime         int64  `json:"updateTime"`
		UrlM               string `json:"urlM"`
		UrlPC              string `json:"urlPC"`
	} `json:"data"`
	Message    string `json:"message"`
	RequestId  string `json:"requestId"`
	TotalCount int    `json:"totalCount"`
}

type UnionOpenActivityQueryResult added in v1.0.44

type UnionOpenActivityQueryResult struct {
	Responce UnionOpenActivityQueryResultResponse // 结果
	Result   UnionOpenActivityQueryQueryResult    // 结果
	Body     []byte                               // 内容
	Http     gorequest.Response                   // 请求
	Err      error                                // 错误
}

type UnionOpenActivityQueryResultResponse added in v1.0.44

type UnionOpenActivityQueryResultResponse struct {
	JdUnionOpenActivityQueryResponce struct {
		Code        string `json:"code"`
		QueryResult string `json:"queryResult"`
	} `json:"jd_union_open_activity_query_responce"`
}

type UnionOpenCategoryGoodsGetQueryResult added in v1.0.44

type UnionOpenCategoryGoodsGetQueryResult struct {
	Code int `json:"code"`
	Data []struct {
		Grade    int    `json:"grade"`    // 类目级别(类目级别 0,1,2 代表一、二、三级类目)
		Name     string `json:"name"`     // 类目名称
		Id       int    `json:"id"`       // 类目Id
		ParentId int    `json:"parentId"` // 父类目Id
	} `json:"data"`
	Message   string `json:"message"`
	RequestId string `json:"requestId"`
}

type UnionOpenCategoryGoodsGetResult added in v1.0.44

type UnionOpenCategoryGoodsGetResult struct {
	Responce UnionOpenCategoryGoodsGetResultResponse // 结果
	Result   UnionOpenCategoryGoodsGetQueryResult    // 结果
	Body     []byte                                  // 内容
	Http     gorequest.Response                      // 请求
	Err      error                                   // 错误
}

type UnionOpenCategoryGoodsGetResultResponse added in v1.0.44

type UnionOpenCategoryGoodsGetResultResponse struct {
	JdUnionOpenCategoryGoodsGetResponce struct {
		Code      string `json:"code"`
		GetResult string `json:"getResult"`
	} `json:"jd_union_open_category_goods_get_responce"`
}

type UnionOpenGoodsBigfieldQueryQueryResult added in v1.0.44

type UnionOpenGoodsBigfieldQueryQueryResult struct {
	Code int `json:"code"`
	Data []struct {
		BaseBigFieldInfo struct {
			WareQD string `json:"wareQD"`
			Wdis   string `json:"wdis"`
		} `json:"baseBigFieldInfo"`
		CategoryInfo struct {
			Cid1     int    `json:"cid1"`
			Cid1Name string `json:"cid1Name"`
			Cid2     int    `json:"cid2"`
			Cid2Name string `json:"cid2Name"`
			Cid3     int    `json:"cid3"`
			Cid3Name string `json:"cid3Name"`
		} `json:"categoryInfo"`
		DetailImages string `json:"detailImages"`
		ImageInfo    struct {
			ImageList []struct {
				Url string `json:"url"`
			} `json:"imageList"`
		} `json:"imageInfo"`
		MainSkuId int64  `json:"mainSkuId"`
		Owner     string `json:"owner"`
		ProductId int64  `json:"productId"`
		SkuId     int64  `json:"skuId"`
		SkuName   string `json:"skuName"`
		SkuStatus int    `json:"skuStatus"`
	} `json:"data"`
	Message   string `json:"message"`
	RequestId string `json:"requestId"`
}

type UnionOpenGoodsBigfieldQueryResult added in v1.0.44

type UnionOpenGoodsBigfieldQueryResult struct {
	Responce UnionOpenGoodsBigfieldQueryResultResponse // 结果
	Result   UnionOpenGoodsBigfieldQueryQueryResult    // 结果
	Body     []byte                                    // 内容
	Http     gorequest.Response                        // 请求
	Err      error                                     // 错误
}

type UnionOpenGoodsBigfieldQueryResultResponse added in v1.0.44

type UnionOpenGoodsBigfieldQueryResultResponse struct {
	JdUnionOpenGoodsBigfieldQueryResponce struct {
		Code        string `json:"code"`
		QueryResult string `json:"queryResult"`
	} `json:"jd_union_open_goods_bigfield_query_responce"`
}

type UnionOpenGoodsJIngFenQueryQueryResult

type UnionOpenGoodsJIngFenQueryQueryResult struct {
	Code int `json:"code"`
	Data []struct {
		BrandCode    string `json:"brandCode"`
		BrandName    string `json:"brandName"`
		CategoryInfo struct {
			Cid1     int64  `json:"cid1"`
			Cid1Name string `json:"cid1Name"`
			Cid2     int    `json:"cid2"`
			Cid2Name string `json:"cid2Name"`
			Cid3     int    `json:"cid3"`
			Cid3Name string `json:"cid3Name"`
		} `json:"categoryInfo"`
		Comments       int `json:"comments"`
		CommissionInfo struct {
			Commission          float64 `json:"commission"`
			CommissionShare     float64 `json:"commissionShare"`
			CouponCommission    float64 `json:"couponCommission"`
			EndTime             int64   `json:"endTime"`
			IsLock              int     `json:"isLock"`
			PlusCommissionShare float64 `json:"plusCommissionShare"`
			StartTime           int64   `json:"startTime"`
		} `json:"commissionInfo"`
		CouponInfo struct {
			CouponList []struct {
				BindType     int     `json:"bindType"`
				Discount     float64 `json:"discount"`
				GetEndTime   int64   `json:"getEndTime"`
				GetStartTime int64   `json:"getStartTime"`
				HotValue     int     `json:"hotValue,omitempty"`
				IsBest       int     `json:"isBest"`
				Link         string  `json:"link"`
				PlatformType int     `json:"platformType"`
				Quota        float64 `json:"quota"`
				UseEndTime   int64   `json:"useEndTime"`
				UseStartTime int64   `json:"useStartTime"`
			} `json:"couponList"`
		} `json:"couponInfo"`
		DeliveryType      int     `json:"deliveryType"`
		ForbidTypes       []int   `json:"forbidTypes"`
		GoodCommentsShare float64 `json:"goodCommentsShare"`
		ImageInfo         struct {
			ImageList []struct {
				Url string `json:"url"`
			} `json:"imageList"`
			WhiteImage string `json:"whiteImage,omitempty"`
		} `json:"imageInfo"`
		InOrderCount30Days    int64  `json:"inOrderCount30Days"`
		InOrderCount30DaysSku int    `json:"inOrderCount30DaysSku"`
		IsHot                 int    `json:"isHot"`
		JxFlags               []int  `json:"jxFlags,omitempty"`
		MaterialUrl           string `json:"materialUrl"`
		Owner                 string `json:"owner"`
		PinGouInfo            struct {
			PingouEndTime   int64   `json:"pingouEndTime,omitempty"`
			PingouPrice     float64 `json:"pingouPrice,omitempty"`
			PingouStartTime int64   `json:"pingouStartTime,omitempty"`
			PingouTmCount   int     `json:"pingouTmCount,omitempty"`
			PingouUrl       string  `json:"pingouUrl,omitempty"`
		} `json:"pinGouInfo"`
		PriceInfo struct {
			HistoryPriceDay   int     `json:"historyPriceDay"`
			LowestCouponPrice float64 `json:"lowestCouponPrice"`
			LowestPrice       float64 `json:"lowestPrice"`
			LowestPriceType   int     `json:"lowestPriceType"`
			Price             float64 `json:"price"`
		} `json:"priceInfo"`
		ResourceInfo struct {
			EliteId   int    `json:"eliteId"`
			EliteName string `json:"eliteName"`
		} `json:"resourceInfo"`
		ShopInfo struct {
			ShopId                        int64   `json:"shopId"`
			ShopLabel                     string  `json:"shopLabel"`
			ShopLevel                     float64 `json:"shopLevel"`
			ShopName                      string  `json:"shopName"`
			AfsFactorScoreRankGrade       string  `json:"afsFactorScoreRankGrade,omitempty"`
			AfterServiceScore             string  `json:"afterServiceScore,omitempty"`
			CommentFactorScoreRankGrade   string  `json:"commentFactorScoreRankGrade,omitempty"`
			LogisticsFactorScoreRankGrade string  `json:"logisticsFactorScoreRankGrade,omitempty"`
			LogisticsLvyueScore           string  `json:"logisticsLvyueScore,omitempty"`
			ScoreRankRate                 string  `json:"scoreRankRate,omitempty"`
			UserEvaluateScore             string  `json:"userEvaluateScore,omitempty"`
		} `json:"shopInfo"`
		SkuId        int64 `json:"skuId"`
		SkuLabelInfo struct {
			FxgServiceList []interface{} `json:"fxgServiceList"`
			Is7ToReturn    int           `json:"is7ToReturn"`
		} `json:"skuLabelInfo"`
		SkuName string `json:"skuName"`
		Spuid   int64  `json:"spuid"`
	} `json:"data"`
	Message    string `json:"message"`
	TotalCount int64  `json:"totalCount"`
}

type UnionOpenGoodsJIngFenQueryResult

type UnionOpenGoodsJIngFenQueryResult struct {
	Responce UnionOpenGoodsJIngFenQueryResultResponse // 结果
	Result   UnionOpenGoodsJIngFenQueryQueryResult    // 结果
	Body     []byte                                   // 内容
	Http     gorequest.Response                       // 请求
	Err      error                                    // 错误
}

type UnionOpenGoodsJIngFenQueryResultResponse added in v1.0.44

type UnionOpenGoodsJIngFenQueryResultResponse struct {
	JdUnionOpenGoodsJingfenQueryResponce struct {
		Code        string `json:"code"`
		QueryResult string `json:"queryResult"`
	} `json:"jd_union_open_goods_jingfen_query_responce"`
}

type UnionOpenGoodsMaterialQueryQueryResult added in v1.0.44

type UnionOpenGoodsMaterialQueryQueryResult struct {
	Code int `json:"code"`
	Data []struct {
		BrandCode    string `json:"brandCode"`
		BrandName    string `json:"brandName"`
		CategoryInfo struct {
			Cid1     int    `json:"cid1"`
			Cid1Name string `json:"cid1Name"`
			Cid2     int    `json:"cid2"`
			Cid2Name string `json:"cid2Name"`
			Cid3     int    `json:"cid3"`
			Cid3Name string `json:"cid3Name"`
		} `json:"categoryInfo"`
		Comments       int `json:"comments"`
		CommissionInfo struct {
			Commission          float64 `json:"commission"`
			CommissionShare     float64 `json:"commissionShare"`
			CouponCommission    float64 `json:"couponCommission"`
			PlusCommissionShare float64 `json:"plusCommissionShare"`
		} `json:"commissionInfo"`
		CouponInfo struct {
			CouponList []struct {
				BindType     int     `json:"bindType"`
				Discount     float64 `json:"discount"`
				GetEndTime   int64   `json:"getEndTime"`
				GetStartTime int64   `json:"getStartTime"`
				IsBest       int     `json:"isBest"`
				Link         string  `json:"link"`
				PlatformType int     `json:"platformType"`
				Quota        float64 `json:"quota"`
				UseEndTime   int64   `json:"useEndTime"`
				UseStartTime int64   `json:"useStartTime"`
			} `json:"couponList"`
		} `json:"couponInfo"`
		DeliveryType      int     `json:"deliveryType"`
		ForbidTypes       []int   `json:"forbidTypes"`
		GoodCommentsShare float64 `json:"goodCommentsShare"`
		ImageInfo         struct {
			ImageList []struct {
				Url string `json:"url"`
			} `json:"imageList"`
			WhiteImage string `json:"whiteImage,omitempty"`
		} `json:"imageInfo"`
		InOrderCount30Days    int    `json:"inOrderCount30Days"`
		InOrderCount30DaysSku int    `json:"inOrderCount30DaysSku"`
		IsHot                 int    `json:"isHot"`
		JxFlags               []int  `json:"jxFlags,omitempty"`
		MaterialUrl           string `json:"materialUrl"`
		Owner                 string `json:"owner"`
		PinGouInfo            struct {
			PingouEndTime   int64   `json:"pingouEndTime,omitempty"`
			PingouPrice     float64 `json:"pingouPrice,omitempty"`
			PingouStartTime int64   `json:"pingouStartTime,omitempty"`
			PingouTmCount   int     `json:"pingouTmCount,omitempty"`
			PingouUrl       string  `json:"pingouUrl,omitempty"`
		} `json:"pinGouInfo"`
		PriceInfo struct {
			LowestCouponPrice float64 `json:"lowestCouponPrice"`
			LowestPrice       float64 `json:"lowestPrice"`
			LowestPriceType   int     `json:"lowestPriceType"`
			Price             float64 `json:"price"`
		} `json:"priceInfo"`
		PromotionInfo struct {
			ClickURL string `json:"clickURL"`
		} `json:"promotionInfo"`
		ResourceInfo struct {
			EliteId   int    `json:"eliteId"`
			EliteName string `json:"eliteName"`
		} `json:"resourceInfo"`
		ShopInfo struct {
			ShopId                        int     `json:"shopId"`
			ShopLabel                     string  `json:"shopLabel"`
			ShopLevel                     float64 `json:"shopLevel"`
			ShopName                      string  `json:"shopName"`
			AfsFactorScoreRankGrade       string  `json:"afsFactorScoreRankGrade,omitempty"`
			AfterServiceScore             string  `json:"afterServiceScore,omitempty"`
			CommentFactorScoreRankGrade   string  `json:"commentFactorScoreRankGrade,omitempty"`
			LogisticsFactorScoreRankGrade string  `json:"logisticsFactorScoreRankGrade,omitempty"`
			LogisticsLvyueScore           string  `json:"logisticsLvyueScore,omitempty"`
			ScoreRankRate                 string  `json:"scoreRankRate,omitempty"`
			UserEvaluateScore             string  `json:"userEvaluateScore,omitempty"`
		} `json:"shopInfo"`
		SkuId     int64  `json:"skuId"`
		SkuName   string `json:"skuName"`
		Spuid     int64  `json:"spuid"`
		VideoInfo struct {
		} `json:"videoInfo"`
	} `json:"data"`
	Message    string `json:"message"`
	RequestId  string `json:"requestId"`
	TotalCount int    `json:"totalCount"`
}

type UnionOpenGoodsMaterialQueryResult added in v1.0.44

type UnionOpenGoodsMaterialQueryResult struct {
	Responce UnionOpenGoodsMaterialQueryResultResponse // 结果
	Result   UnionOpenGoodsMaterialQueryQueryResult    // 结果
	Body     []byte                                    // 内容
	Http     gorequest.Response                        // 请求
	Err      error                                     // 错误
}

type UnionOpenGoodsMaterialQueryResultResponse added in v1.0.44

type UnionOpenGoodsMaterialQueryResultResponse struct {
	JdUnionOpenGoodsMaterialQueryResponce struct {
		Code        string `json:"code"`
		QueryResult string `json:"queryResult"`
	} `json:"jd_union_open_goods_material_query_responce"`
}

type UnionOpenGoodsPromotionGoodsInfoQueryQueryResult

type UnionOpenGoodsPromotionGoodsInfoQueryQueryResult struct {
	Code int `json:"code"`
	Data []struct {
		UnitPrice         float64 `json:"unitPrice"`
		MaterialUrl       string  `json:"materialUrl"`
		EndDate           int64   `json:"endDate"`
		IsFreeFreightRisk int     `json:"isFreeFreightRisk"`
		IsFreeShipping    int     `json:"isFreeShipping"`
		CommisionRatioWl  float64 `json:"commisionRatioWl"`
		CommisionRatioPc  float64 `json:"commisionRatioPc"`
		ImgUrl            string  `json:"imgUrl"`
		Vid               int     `json:"vid"`
		CidName           string  `json:"cidName"`
		WlUnitPrice       float64 `json:"wlUnitPrice"`
		Cid2Name          string  `json:"cid2Name"`
		IsSeckill         int     `json:"isSeckill"`
		Cid2              int     `json:"cid2"`
		Cid3Name          string  `json:"cid3Name"`
		Unt               int     `json:"unt"`
		Cid3              int     `json:"cid3"`
		ShopId            int     `json:"shopId"`
		IsJdSale          int     `json:"isJdSale"`
		GoodsName         string  `json:"goodsName"`
		SkuId             int64   `json:"skuId"`
		StartDate         int64   `json:"startDate"`
		Cid               int64   `json:"cid"`
	} `json:"data"`
	Message   string `json:"message"`
	RequestId string `json:"requestId"`
}

type UnionOpenGoodsPromotionGoodsInfoQueryResult

type UnionOpenGoodsPromotionGoodsInfoQueryResult struct {
	Responce UnionOpenGoodsPromotionGoodsInfoQueryResultResponse // 结果
	Result   UnionOpenGoodsPromotionGoodsInfoQueryQueryResult    // 结果
	Body     []byte                                              // 内容
	Http     gorequest.Response                                  // 请求
	Err      error                                               // 错误
}

type UnionOpenGoodsPromotionGoodsInfoQueryResultResponse added in v1.0.44

type UnionOpenGoodsPromotionGoodsInfoQueryResultResponse struct {
	JdUnionOpenGoodsPromotiongoodsinfoQueryResponce struct {
		Code        string `json:"code"`
		QueryResult string `json:"queryResult"`
	} `json:"jd_union_open_goods_promotiongoodsinfo_query_responce"`
}

type UnionOpenOrderQueryQueryResult added in v1.0.44

type UnionOpenOrderQueryQueryResult struct {
	Code int `json:"code"`
	Data []struct {
		Ext1       string `json:"ext1"`
		FinishTime int64  `json:"finishTime"`
		OrderEmt   int    `json:"orderEmt"`
		OrderId    int64  `json:"orderId"`
		OrderTime  int64  `json:"orderTime"`
		ParentId   int    `json:"parentId"`
		PayMonth   int    `json:"payMonth"`
		Plus       int    `json:"plus"`
		PopId      int    `json:"popId"`
		SkuList    []struct {
			ActualCosPrice      float64 `json:"actualCosPrice"`
			ActualFee           float64 `json:"actualFee"`
			Cid1                int     `json:"cid1"`
			Cid2                int     `json:"cid2"`
			Cid3                int     `json:"cid3"`
			CommissionRate      float64 `json:"commissionRate"`
			CpActId             int     `json:"cpActId"`
			EstimateCosPrice    float64 `json:"estimateCosPrice"`
			EstimateFee         float64 `json:"estimateFee"`
			Ext1                string  `json:"ext1"`
			FinalRate           float64 `json:"finalRate"`
			FrozenSkuNum        int     `json:"frozenSkuNum"`
			GiftCouponKey       string  `json:"giftCouponKey"`
			GiftCouponOcsAmount float64 `json:"giftCouponOcsAmount"`
			PayMonth            int     `json:"payMonth"`
			Pid                 string  `json:"pid"`
			PopId               int     `json:"popId"`
			PositionId          int     `json:"positionId"`
			Price               float64 `json:"price"`
			ProPriceAmount      float64 `json:"proPriceAmount"`
			SiteId              int     `json:"siteId"`
			SkuId               int64   `json:"skuId"`
			SkuName             string  `json:"skuName"`
			SkuNum              int     `json:"skuNum"`
			SkuReturnNum        int     `json:"skuReturnNum"`
			SubSideRate         float64 `json:"subSideRate"`
			SubUnionId          string  `json:"subUnionId"`
			SubsidyRate         float64 `json:"subsidyRate"`
			TraceType           int     `json:"traceType"`
			UnionAlias          string  `json:"unionAlias"`
			UnionRole           int     `json:"unionRole"`
			UnionTag            string  `json:"unionTag"`
			UnionTrafficGroup   int     `json:"unionTrafficGroup"`
			ValidCode           int     `json:"validCode"`
		} `json:"skuList"`
		UnionId   int `json:"unionId"`
		ValidCode int `json:"validCode"`
	} `json:"data"`
	HasMore   bool   `json:"hasMore"`
	Message   string `json:"message"`
	RequestId string `json:"requestId"`
}

type UnionOpenOrderQueryResult added in v1.0.44

type UnionOpenOrderQueryResult struct {
	Responce UnionOpenOrderQueryResultResponse // 结果
	Result   UnionOpenOrderQueryQueryResult    // 结果
	Body     []byte                            // 内容
	Http     gorequest.Response                // 请求
	Err      error                             // 错误
}

type UnionOpenOrderQueryResultResponse added in v1.0.44

type UnionOpenOrderQueryResultResponse struct {
	JdUnionOpenOrderQueryResponce struct {
		Code        string `json:"code"`
		QueryResult string `json:"queryResult"`
	} `json:"jd_union_open_order_query_responce"`
}

type UnionOpenOrderRowQueryQueryResult added in v1.0.44

type UnionOpenOrderRowQueryQueryResult struct {
	Code int `json:"code"`
	Data []struct {
		ActualCosPrice float64 `json:"actualCosPrice"`
		ActualFee      float64 `json:"actualFee"`
		BalanceExt     string  `json:"balanceExt"`
		CategoryInfo   struct {
			Cid1 int `json:"cid1"`
			Cid2 int `json:"cid2"`
			Cid3 int `json:"cid3"`
		} `json:"categoryInfo"`
		ChannelId           int     `json:"channelId"`
		Cid1                int     `json:"cid1"`
		Cid2                int     `json:"cid2"`
		Cid3                int     `json:"cid3"`
		CommissionRate      float64 `json:"commissionRate"`
		CpActId             int     `json:"cpActId"`
		EstimateCosPrice    float64 `json:"estimateCosPrice"`
		EstimateFee         float64 `json:"estimateFee"`
		ExpressStatus       int     `json:"expressStatus"`
		Ext1                string  `json:"ext1"`
		FinalRate           float64 `json:"finalRate"`
		FinishTime          string  `json:"finishTime"`
		GiftCouponKey       string  `json:"giftCouponKey"`
		GiftCouponOcsAmount float64 `json:"giftCouponOcsAmount"`
		GoodsInfo           struct {
			MainSkuId int `json:"mainSkuId"`
			ProductId int `json:"productId"`
			ShopId    int `json:"shopId"`
		} `json:"goodsInfo"`
		Id             string  `json:"id"`
		ModifyTime     string  `json:"modifyTime"`
		OrderEmt       int     `json:"orderEmt"`
		OrderId        int64   `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          float64 `json:"price"`
		ProPriceAmount float64 `json:"proPriceAmount"`
		Rid            int     `json:"rid"`
		SiteId         int     `json:"siteId"`
		SkuFrozenNum   int     `json:"skuFrozenNum"`
		SkuId          int64   `json:"skuId"`
		SkuName        string  `json:"skuName"`
		SkuNum         int     `json:"skuNum"`
		SkuReturnNum   int     `json:"skuReturnNum"`
		SubSideRate    float64 `json:"subSideRate"`
		SubUnionId     string  `json:"subUnionId"`
		SubsidyRate    float64 `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"`
	} `json:"data"`
	HasMore   bool   `json:"hasMore"`
	Message   string `json:"message"`
	RequestId string `json:"requestId"`
}

type UnionOpenOrderRowQueryResult added in v1.0.44

type UnionOpenOrderRowQueryResult struct {
	Responce UnionOpenOrderRowQueryResultResponse // 结果
	Result   UnionOpenOrderRowQueryQueryResult    // 结果
	Body     []byte                               // 内容
	Http     gorequest.Response                   // 请求
	Err      error                                // 错误
}

type UnionOpenOrderRowQueryResultResponse added in v1.0.44

type UnionOpenOrderRowQueryResultResponse struct {
	JdUnionOpenOrderRowQueryResponce struct {
		Code        string `json:"code"`
		QueryResult string `json:"queryResult"`
	} `json:"jd_union_open_order_row_query_responce"`
}

type UnionOpenPromotionBySubUnionIdGetGetResult added in v1.0.44

type UnionOpenPromotionBySubUnionIdGetGetResult struct {
	Code int `json:"code"`
	Data struct {
		ClickURL string `json:"clickURL"`
		JCommand string `json:"jCommand"`
	} `json:"data"`
	Message   string `json:"message"`
	RequestId string `json:"requestId"`
}

type UnionOpenPromotionBySubUnionIdGetResult added in v1.0.44

type UnionOpenPromotionBySubUnionIdGetResult struct {
	Responce UnionOpenPromotionBySubUnionIdGetResultResponse // 结果
	Result   UnionOpenPromotionBySubUnionIdGetGetResult      // 结果
	Body     []byte                                          // 内容
	Http     gorequest.Response                              // 请求
	Err      error                                           // 错误
}

type UnionOpenPromotionBySubUnionIdGetResultResponse added in v1.0.44

type UnionOpenPromotionBySubUnionIdGetResultResponse struct {
	JdUnionOpenPromotionBySubUnionIdGetResponce struct {
		Code      string `json:"code"`
		GetResult string `json:"getResult"`
	} `json:"jd_union_open_promotion_common_get_responce"`
}

type UnionOpenPromotionCommonGetGetResult

type UnionOpenPromotionCommonGetGetResult struct {
	Code int `json:"code"`
	Data struct {
		ClickURL string `json:"clickURL"`
		JCommand string `json:"jCommand"`
	} `json:"data"`
	Message   string `json:"message"`
	RequestId string `json:"requestId"`
}

type UnionOpenPromotionCommonGetResult

type UnionOpenPromotionCommonGetResult struct {
	Responce UnionOpenPromotionCommonGetResultResponse // 结果
	Result   UnionOpenPromotionCommonGetGetResult      // 结果
	Body     []byte                                    // 内容
	Http     gorequest.Response                        // 请求
	Err      error                                     // 错误
}

type UnionOpenPromotionCommonGetResultResponse added in v1.0.44

type UnionOpenPromotionCommonGetResultResponse struct {
	JdUnionOpenPromotionCommonGetResponce struct {
		Code      string `json:"code"`
		GetResult string `json:"getResult"`
	} `json:"jd_union_open_promotion_common_get_responce"`
}

Jump to

Keyboard shortcuts

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