Documentation
¶
Index ¶
- func MobileBigField(ctx context.Context, req *MobileBigFieldRequest) (string, error)
- func VenderSkusQuery(ctx context.Context, req *VenderSkusQueryRequest) ([]uint64, int, error)
- type AdWords
- type Feature
- type FindWareByIdData
- type FindWareByIdRequest
- type FindWareByIdResponse
- type Image
- type MobileBigFieldData
- type MobileBigFieldRequest
- type MobileBigFieldResponse
- type PriceChange
- type PriceChangeOrig
- type PriceChangesData
- type PriceGetRequest
- type PriceGetResponse
- type ProductsBase
- type SaleAttr
- type SearchWare4ValidPage
- type SearchWare4ValidRequest
- type SearchWare4ValidResponse
- type SearchWare4ValidSubResponse
- type Sku
- type Sku2
- type SkusGetRequest
- type SkusGetResponse
- type SkusGetSubResponse
- type VenderSkusQueryData
- type VenderSkusQueryRequest
- type VenderSkusQueryResponse
- type VenderSkusQueryResult
- type Ware
- type WareBaseProductGetData
- type WareBaseProductGetRequest
- type WareBaseProductGetResponse
- type WareTax
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MobileBigField ¶
func MobileBigField(ctx context.Context, req *MobileBigFieldRequest) (string, error)
func VenderSkusQuery ¶
获取单个SKU
Types ¶
type FindWareByIdData ¶
type FindWareByIdRequest ¶
type FindWareByIdRequest struct {
api.BaseRequest
Fields string `json:"fields,omitempty" codec:"fields,omitempty"` //
WareId uint64 `json:"ware_id,omitempty" codec:"ware_id,omitempty"` // 自定义返回字段
}
type FindWareByIdResponse ¶
type FindWareByIdResponse struct {
ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"`
Data *FindWareByIdData `json:"jingdong_ware_read_findWareById_responce,omitempty" codec:"jingdong_ware_read_findWareById_responce,omitempty"`
}
func (FindWareByIdResponse) Error ¶ added in v1.1.1
func (r FindWareByIdResponse) Error() string
func (FindWareByIdResponse) IsError ¶ added in v1.1.1
func (r FindWareByIdResponse) IsError() bool
type Image ¶
type Image struct {
ColorId string `json:"colorId,omitempty" codec:"colorId,omitempty"` // 颜色
ImgId uint64 `json:"imgId,omitempty" codec:"imgId,omitempty"` // 图片ID
ImgIndex int `json:"imgIndex,omitempty" codec:"imgIndex,omitempty"` // 图片顺序
ImgUrl string `json:"imgUrl,omitempty" codec:"imgUrl,omitempty"` // 图片路径
ImgZoneId string `json:"imgZoneId,omitempty" codec:"imgZoneId,omitempty"` // 图片空间中图片ID
}
type MobileBigFieldData ¶
type MobileBigFieldData struct {
Code string `json:"code,omitempty" codec:"code,omitempty"`
ErrorDesc string `json:"error_description,omitempty" codec:"error_description,omitempty"`
Result string `json:"result,omitempty" codec:"result,omitempty"`
}
func (MobileBigFieldData) Error ¶ added in v1.1.1
func (r MobileBigFieldData) Error() string
func (MobileBigFieldData) IsError ¶ added in v1.1.1
func (r MobileBigFieldData) IsError() bool
type MobileBigFieldRequest ¶
type MobileBigFieldRequest struct {
api.BaseRequest
SkuId uint64 `json:"sku_id" codec:"sku_id"`
}
type MobileBigFieldResponse ¶
type MobileBigFieldResponse struct {
ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"`
Data *MobileBigFieldData `` /* 126-byte string literal not displayed */
}
func (MobileBigFieldResponse) Error ¶ added in v1.1.1
func (r MobileBigFieldResponse) Error() string
func (MobileBigFieldResponse) IsError ¶ added in v1.1.1
func (r MobileBigFieldResponse) IsError() bool
type PriceChange ¶
type PriceChange struct {
SkuId uint64 `json:"sku_id,omitempty" codec:"sku_id,omitempty"`
Price float64 `json:"price,omitempty" codec:"price,omitempty"`
MarketPrice float64 `json:"market_price,omitempty" codec:"market_price,omitempty"`
}
func PriceGet ¶
func PriceGet(ctx context.Context, req *PriceGetRequest) (*PriceChange, error)
获取单个SKU
type PriceChangeOrig ¶
type PriceChangesData ¶
type PriceChangesData struct {
PriceChanges []PriceChangeOrig `json:"price_changes,omitempty" codec:"price_changes,omitempty"`
}
type PriceGetRequest ¶
type PriceGetRequest struct {
api.BaseRequest
SkuId uint64 `json:"sku_id,omitempty" codec:"sku_id,omitempty"` //
}
type PriceGetResponse ¶
type PriceGetResponse struct {
ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"`
Data *PriceChangesData `json:"jingdong_ware_price_get_responce,omitempty" codec:"jingdong_ware_price_get_responce,omitempty"`
}
func (*PriceGetResponse) Error ¶ added in v1.1.1
func (r *PriceGetResponse) Error() string
func (*PriceGetResponse) IsError ¶ added in v1.1.1
func (r *PriceGetResponse) IsError() bool
type ProductsBase ¶
type ProductsBase struct {
SkuId uint64 `json:"skuId,omitempty" codec:"skuId,omitempty"` // sku编号
Name string `json:"name,omitempty" codec:"name,omitempty"` // 商品名称
IsDelete string `json:"isDelete,omitempty" codec:"isDelete,omitempty"` // 状态 0: 已删除,1: 正常
State string `json:"state,omitempty" codec:"state,omitempty"` // 上下柜状态 0: 未上架 1: 已上架 2: 非图书商品表示预上架,图书商品表示前台屏蔽 10: POP商品删除状态
BarCode string `json:"barCode,omitempty" codec:"barCode,omitempty"` // 产品编码
ErpPid string `json:"erpPid,omitempty" codec:"erpPid,omitempty"` // 商品编号 主skuId
Color string `json:"color,omitempty" codec:"color,omitempty"` // 颜色
ColorSequence string `json:"colorSequence,omitempty" codec:"colorSequence,omitempty"` // 颜色顺序
Size string `json:"size,omitempty" codec:"size,omitempty"` // 尺码
SizeSequence string `json:"sizeSequence,omitempty" codec:"sizeSequence,omitempty"` // 尺码顺序
Upc string `json:"upc,omitempty" codec:"upc,omitempty"` // Upc码
SkuMark string `json:"skuMark,omitempty" codec:"skuMark,omitempty"` // sku标示
SaleDate string `json:"saleDate,omitempty" codec:"saleDate,omitempty"` // 上下柜日期
Cid2 string `json:"cid2,omitempty" codec:"cid2,omitempty"` // 商品的第二分类(3级)
ValueWeight string `json:"valueWeight,omitempty" codec:"valueWeight,omitempty"` // 重量
Weight string `json:"weight,omitempty" codec:"weight,omitempty"` // 重量
ProductArea string `json:"productArea,omitempty" codec:"productArea,omitempty"` // 商品产地(默认:中国大陆)
Wserve string `json:"wserve,omitempty" codec:"wserve,omitempty"` // 质保(无质保,一年质保,二年质保等)
Allnum string `json:"allnum,omitempty" codec:"allnum,omitempty"` // 图片标签 默认0 没有标签
MaxPurchQty string `json:"maxPurchQty,omitempty" codec:"maxPurchQty,omitempty"` // 24小时限购数量
BrandId string `json:"brandId,omitempty" codec:"brandId,omitempty"` // 品牌号
ValuePayFirst string `json:"valuePayFirst,omitempty" codec:"valuePayFirst,omitempty"` // 是否先款商品
Length string `json:"length,omitempty" codec:"length,omitempty"` // 长度
Width string `json:"width,omitempty" codec:"width,omitempty"` // 宽度
Height string `json:"height,omitempty" codec:"height,omitempty"` // 商家类型
VenderType string `json:"venderType,omitempty" codec:"venderType,omitempty"` // 主商品名称
Pname string `json:"pname,omitempty" codec:"pname,omitempty"` // 商品产地(默认:中国大陆)
Issn string `json:"issn,omitempty" codec:"issn,omitempty"` // 是否序列化
SafeDays string `json:"safeDays,omitempty" codec:"safeDays,omitempty"` // 保质期
SaleUnit string `json:"saleUnit,omitempty" codec:"saleUnit,omitempty"` // 销售单位
PackSpecification string `json:"packSpecification,omitempty" codec:"packSpecification,omitempty"` // 包装规格
Category string `json:"category,omitempty" codec:"category,omitempty"` // 分类信息
ShopCategorys string `json:"shopCategorys,omitempty" codec:"shopCategorys,omitempty"` // 店内分类
Phone string `json:"phone,omitempty" codec:"phone,omitempty"` // 售后电话
Site string `json:"site,omitempty" codec:"site,omitempty"` // 官网
Ebrand string `json:"ebrand,omitempty" codec:"ebrand,omitempty"` // 英文品牌
Model string `json:"model,omitempty" codec:"model,omitempty"` // 型号
ImagePath string `json:"imagePath,omitempty" codec:"imagePath,omitempty"` // 图片路径
ShopName string `json:"shopName,omitempty" codec:"shopName,omitempty"` // 店铺名称
Url string `json:"url,omitempty" codec:"url,omitempty"` // 未定义
VenderId string `json:"venderId,omitempty" codec:"venderId,omitempty"` // 商家编号
Price float64 `json:"price,omitempty" codec:"price,omitempty"`
MarketPrice float64 `json:"market_price,omitempty" codec:"market_price,omitempty"`
}
func WareBaseProductGet ¶
func WareBaseProductGet(ctx context.Context, req *WareBaseProductGetRequest) ([]ProductsBase, error)
获取单个SKU
type SaleAttr ¶
type SaleAttr struct {
AttrId string `json:"attrId,omitempty" codec:"attrId,omitempty"` // 属性ID
AttrValueAlias []string `json:"attrValueAlias,omitempty" codec:"attrValueAlias,omitempty"` // 属性值的描述或者别名,与attrValues一一对应
AttrValues []string `json:"attrValues,omitempty" codec:"attrValues,omitempty"` // 属性值ID
Index int `json:"index,omitempty" codec:"index,omitempty"` // 销售属性维度 1:颜色,2:尺码
}
销售属性
type SearchWare4ValidPage ¶
type SearchWare4ValidPage struct {
Data []Ware `json:"data,omitempty" codec:"data,omitempty"`
PageNo int `json:"pageNo,omitempty" codec:"pageNo,omitempty"`
PageSize int `json:"pageSize,omitempty" codec:"pageSize,omitempty"`
TotalItem int `json:"totalItem,omitempty" codec:"totalItem,omitempty"`
}
func SearchWare4Valid ¶
func SearchWare4Valid(ctx context.Context, req *SearchWare4ValidRequest) (*SearchWare4ValidPage, error)
根据条件检索订单信息 (仅适用于SOP、LBP,SOPL类型,FBP类型请调取FBP订单检索 )
type SearchWare4ValidRequest ¶
type SearchWare4ValidRequest struct {
api.BaseRequest
WareId string `json:"wareId,omitempty" codec:"wareId,omitempty"` // 商品id列表,最多20个
SearchKey string `json:"searchKey,omitempty" codec:"searchKey,omitempty"` // 商品搜索关键词,需要配合搜索域实现
SearchField string `json:"searchField,omitempty" codec:"searchField,omitempty"` // 商品搜索域的范围,默认是商品名称.目前值范围[title]
CategoryId uint64 `json:"categoryId,omitempty" codec:"categoryId,omitempty"` // 商品叶子类目
ShopCategoryIdLevel1 uint64 `json:"shopCategoryIdLevel1,omitempty" codec:"shopCategoryIdLevel1,omitempty"` // 一级店内分类id
ShopCategoryIdLevel2 uint64 `json:"shopCategoryIdLevel2,omitempty" codec:"shopCategoryIdLevel2,omitempty"` // 二级店内分类id
TemplateId uint64 `json:"templateId,omitempty" codec:"templateId,omitempty"` // 关联板式ID
PromiseId uint64 `json:"promiseId,omitempty" codec:"promiseId,omitempty"` // 时效模板ID
BrandId uint64 `json:"brandId,omitempty" codec:"brandId,omitempty"` // 品牌ID
FeatureKey []string `json:"featureKey,omitempty" codec:"featureKey,omitempty"` // 商品的特殊属性key
FeatureValue []string `json:"featureValue,omitempty" codec:"featureValue,omitempty"` // 商品的特殊属性value
WareStatusValue []int `json:"wareStatusValue,omitempty" codec:"wareStatusValue,omitempty"` // 商品状态,多个值属于[或]操作 1:从未上架 2:自主下架 4:系统下架 8:上架 513:从未上架待审 514:自主下架待审 516:系统下架待审 520:上架待审核 1028:系统下架审核失败
ItemNum string `json:"itemNum,omitempty" codec:"itemNum,omitempty"` // 商品货号
BarCode string `json:"barCode,omitempty" codec:"barCode,omitempty"` // 商品条码
ColType int `json:"colType,omitempty" codec:"colType,omitempty"` // 合作类型
StartCreatedTime int64 `json:"startCreatedTime,omitempty" codec:"startCreatedTime,omitempty"` // 开始创建时间
EndCreatedTime int64 `json:"endCreatedTime,omitempty" codec:"endCreatedTime,omitempty"` // 结束创建时间
StartJdPrice float64 `json:"startJdPrice,omitempty" codec:"startJdPrice,omitempty"` // 开始京东价
EndJdPrice float64 `json:"endJdPrice,omitempty" codec:"endJdPrice,omitempty"` // 结束京东价
StartOnlineTime int64 `json:"startOnlineTime,omitempty" codec:"startOnlineTime,omitempty"` // 开始上架时间
EndOnlineTime int64 `json:"endOnlineTime,omitempty" codec:"endOnlineTime,omitempty"` // 结束上架时间
StartModifiedTime int64 `json:"startModifiedTime,omitempty" codec:"startModifiedTime,omitempty"` // 开始修改时间
EndModifiedTime int64 `json:"endModifiedTime,omitempty" codec:"endModifiedTime,omitempty"` // 结束修改时间
StartOfflineTime int64 `json:"startOfflineTime,omitempty" codec:"startOfflineTime,omitempty"` // 开始下架时间
EndOfflineTime int64 `json:"endOfflineTime,omitempty" codec:"endOfflineTime,omitempty"` // 结束下架时间
StartStockNum int `json:"startStockNum,omitempty" codec:"startStockNum,omitempty"` // 开始商品库存
EndStockNum int `json:"endStockNum,omitempty" codec:"endStockNum,omitempty"` // 结束商品库存
OrderField []string `json:"orderField,omitempty" codec:"orderField,omitempty"` // 排序字段.值范围[wareId offlineTime onlineTime stockNum jdPrice modified]
OrderType []string `json:"orderType,omitempty" codec:"orderType,omitempty"` // 排序方式.值范围[asc desc]
PageNo int `json:"pageNo,omitempty" codec:"pageNo,omitempty"` // 页码
PageSize int `json:"pageSize,omitempty" codec:"pageSize,omitempty"` // 每页条数
TransportId uint64 `json:"transportId,omitempty" codec:"transportId,omitempty"` // 运费模板ID
Claim int `json:"claim,omitempty" codec:"claim,omitempty"` // 是否认领
GroupId uint64 `json:"groupId,omitempty" codec:"groupId,omitempty"` // 分组ID
MultiCategoryId uint64 `json:"multiCategoryId,omitempty" codec:"multiCategoryId,omitempty"` // 四级类目ID
WarePropKey string `json:"warePropKey,omitempty" codec:"warePropKey,omitempty"` // 商品的类目属性搜索key
WarePropValue string `json:"warePropValue,omitempty" codec:"warePropValue,omitempty"` // 商品的类目属性搜索value
Field string `json:"field,omitempty" codec:"field,omitempty"` // 可选的返回的字段
}
type SearchWare4ValidResponse ¶
type SearchWare4ValidResponse struct {
ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"`
Data *SearchWare4ValidSubResponse `json:"jingdong_ware_read_searchWare4Valid_responce,omitempty" codec:"jingdong_ware_read_searchWare4Valid_responce,omitempty"`
}
func (SearchWare4ValidResponse) Error ¶ added in v1.1.1
func (r SearchWare4ValidResponse) Error() string
func (SearchWare4ValidResponse) IsError ¶ added in v1.1.1
func (r SearchWare4ValidResponse) IsError() bool
type SearchWare4ValidSubResponse ¶
type SearchWare4ValidSubResponse struct {
Code string `json:"code,omitempty" codec:"code,omitempty"`
ErrorDesc string `json:"error_description,omitempty" codec:"error_description,omitempty"`
Page *SearchWare4ValidPage `json:"page,omitempty" codec:"page,omitempty"`
}
func (SearchWare4ValidSubResponse) Error ¶ added in v1.1.1
func (r SearchWare4ValidSubResponse) Error() string
func (SearchWare4ValidSubResponse) IsError ¶ added in v1.1.1
func (r SearchWare4ValidSubResponse) IsError() bool
type Sku ¶
type Sku struct {
WareId uint64 `json:"wareId,omitempty" codec:"wareId,omitempty"` // 商品ID
SkuId uint64 `json:"skuId,omitempty" codec:"skuId,omitempty"` // skuId
Status uint8 `json:"status,omitempty" codec:"status,omitempty"` // 状态,只读属性. 1:上架 2:下架 4:删除
SaleAttrs []SaleAttr `json:"saleAttrs,omitempty" codec:"saleAttrs,omitempty"` // 销售属性集合
Features []Feature `json:"features,omitempty" codec:"features,omitempty"` // 特殊属性集合
JdPrice float64 `json:"jdPrice,omitempty" codec:"jdPrice,omitempty"` // 京东价
PromoPrice float64 `json:"promoPrice,omitempty" codec:"promoPrice,omitempty"`
OuterId string `json:"outerId,omitempty" codec:"outerId,omitempty"` // 外部ID
BarCode string `json:"barCode,omitempty" codec:"barCode,omitempty"` // sku条形码
CategoryId uint64 `json:"categoryId,omitempty" codec:"categoryId,omitempty"` // 类目id
ImgTag int `json:"imgTag,omitempty" codec:"imgTag,omitempty"` // 图片标签
Logo string `json:"logo,omitempty" codec:"logo,omitempty"` // sku颜色的主图
SkuName string `json:"skuName,omitempty" codec:"skuName,omitempty"` // sku名称
StockNum int `json:"stockNum,omitempty" codec:"stockNum,omitempty"` // 总库存数
WareTitle string `json:"wareTitle,omitempty" codec:"wareTitle,omitempty"` // 商品名称
FixedDeliveryTime string `json:"fixedDeliveryTime,omitempty" codec:"fixedDeliveryTime,omitempty"` // 大件商品固定发货时效 格式:订单开始日期,订单结束日期,发货日期,完成发货天数
RelativeDeliveryTime string `json:"relativeDeliveryTime,omitempty" codec:"relativeDeliveryTime,omitempty"` // 大件商品相对发货时效(完成发货天数)
ParentId uint64 `json:"parentId,omitempty" codec:"parentId,omitempty"` // 父id
Modified int64 `json:"modified,omitempty" codec:"modified,omitempty"` // 修改时间
Created int64 `json:"created,omitempty" codec:"created,omitempty"` // 创建时间
MultiCateProps []SaleAttr `json:"multiCateProps,omitempty" codec:"multiCateProps,omitempty"` // 多级SKU属性
Props []SaleAttr `json:"props,omitempty" codec:"props,omitempty"` // SKU属性
Capacity string `json:"capacity,omitempty"`
MobileDesc string `json:"mobileDesc" coded:"mobileDesc"` // 手机详情
XbOnlineSts uint8 `json:"xb_online_sts,omitempty" codec:"xb_online_sts,omitempty"`
XbAuditSts uint8 `json:"xb_audit_sts,omitempty" codec:"xb_audit_sts,omitempty"`
XbUpdatedAt string `json:"xb_updated_at,omitempty" codec:"xb_updated_at,omitempty"`
TrackUrl string `json:"track_url,omitempty" codec:"trace_url,omitempty"` // 京东追踪链接
PromoLimit float64 `json:"promoLimit,omitempty" codec:"promoLimit,omitempty"` // 促销最低折扣
}
type Sku2 ¶
type Sku2 struct {
SkuId uint64 `json:"sku_id,omitempty" codec:"sku_id,omitempty"` // sku的id
WareId uint64 `json:"ware_id,omitempty" codec:"ware_id,omitempty"` // sku所属商品id
ShopId uint64 `json:"shop_id,omitempty" codec:"shop_id,omitempty"` // 店铺id
Status string `json:"status,omitempty" codec:"status,omitempty"` // sku状态 有效:Valid 无效:Invalid
Attributes string `json:"attributes,omitempty" codec:"attributes,omitempty"` // sku的销售属性组合字符串(颜色,大小,等等,可通过类目API获取某类目下的销售属性),格式是aid1:vid1;aid2:vid2
JdPrice string `json:"jd_price,omitempty" codec:"jd_price,omitempty"` // 京东价,精确到2位小数,单位元
CostPrice string `json:"cost_price,omitempty" codec:"cost_price,omitempty"` // 进货价, 精确到2位小数,单位元
MarketPrice string `json:"market_price,omitempty" codec:"market_price,omitempty"` // 市场价, 精确到2位小数,单位元
StockNum int `json:"stock_num,omitempty" codec:"stock_num,omitempty"` // 库存
OuterId string `json:"outer_id,omitempty" codec:"outer_id,omitempty"` // 外部id,商家设置的外部id
Created string `json:"created,omitempty" codec:"created,omitempty"` // sku创建时间 时间格式:yyyy-MM-ddHH:mm:ss
Modified string `json:"modified,omitempty" codec:"modified,omitempty"` // sku修改时间 时间格式:yyyy-MM-ddHH:mm:ss
ColorValue string `json:"color_value,omitempty" codec:"color_value,omitempty"` // 颜色对应的值
SizeValue string `json:"size_value,omitempty" codec:"size_value,omitempty"` // 尺码对应的值
Logo string `json:"logo,omitempty" codec:"logo,omitempty"` // sku颜色的主图
}
type SkusGetRequest ¶
type SkusGetRequest struct {
api.BaseRequest
WareIds []string `json:"ware_ids,omitempty" codec:"ware_ids,omitempty"`
Fields []string `json:"fields,omitempty" codec:"fields,omitempty"`
}
type SkusGetResponse ¶
type SkusGetResponse struct {
ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"`
Data *SkusGetSubResponse `json:"ware_skus_get_response,omitempty" codec:"ware_skus_get_response,omitempty"`
}
func (SkusGetResponse) Error ¶ added in v1.1.1
func (r SkusGetResponse) Error() string
func (SkusGetResponse) IsError ¶ added in v1.1.1
func (r SkusGetResponse) IsError() bool
type SkusGetSubResponse ¶
type SkusGetSubResponse struct {
Code string `json:"code,omitempty" codec:"code,omitempty"`
ErrorDesc string `json:"error_description,omitempty" codec:"error_description,omitempty"`
Skus []Sku2 `json:"skus,omitempty" codec:"skus,omitempty"`
}
func (SkusGetSubResponse) Error ¶ added in v1.1.1
func (r SkusGetSubResponse) Error() string
func (SkusGetSubResponse) IsError ¶ added in v1.1.1
func (r SkusGetSubResponse) IsError() bool
type VenderSkusQueryData ¶
type VenderSkusQueryData struct {
Code string `json:"code,omitempty" codec:"code,omitempty"`
SearchResult *VenderSkusQueryResult `json:"search_result,omitempty" codec:"search_result,omitempty"`
}
func (VenderSkusQueryData) Error ¶ added in v1.1.1
func (r VenderSkusQueryData) Error() string
func (VenderSkusQueryData) IsError ¶ added in v1.1.1
func (r VenderSkusQueryData) IsError() bool
type VenderSkusQueryRequest ¶
type VenderSkusQueryRequest struct {
api.BaseRequest
Index int `json:"index,omitempty" codec:"index,omitempty"` //
}
type VenderSkusQueryResponse ¶
type VenderSkusQueryResponse struct {
ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"`
Data *VenderSkusQueryData `json:"jingdong_new_ware_vender_skus_query_responce,omitempty" codec:"jingdong_new_ware_vender_skus_query_responce,omitempty"`
}
func (VenderSkusQueryResponse) Error ¶ added in v1.1.1
func (r VenderSkusQueryResponse) Error() string
func (VenderSkusQueryResponse) IsError ¶ added in v1.1.1
func (r VenderSkusQueryResponse) IsError() bool
type VenderSkusQueryResult ¶
type Ware ¶
type Ware struct {
WareId uint64 `json:"wareId,omitempty" codec:"wareId,omitempty"` // 商品id
Title string `json:"title,omitempty" codec:"title,omitempty"` // 商品名称
CategoryId uint64 `json:"categoryId,omitempty" codec:"categoryId,omitempty"` // 类目ID
BrandId uint64 `json:"brandId,omitempty" codec:"brandId,omitempty"` // 品牌ID
TemplateId uint64 `json:"templateId,omitempty" codec:"templateId,omitempty"` // 关联板式id
TransportId uint64 `json:"transportId,omitempty" codec:"transportId,omitempty"` // 运费模板ID
WareStatus int `json:"wareStatus,omitempty" codec:"wareStatus,omitempty"` // 商品状态 1:从未上架 2:自主下架 4:系统下架 8:上架 513:从未上架待审 514:自主下架待审 516:系统下架待审 520:上架待审核 1028:系统下架审核失败
OuterId string `json:"outerId,omitempty" codec:"outerId,omitempty"` // 外部ID
ItemNum string `json:"itemNum,omitempty" codec:"itemNum,omitempty"` // 商品货号
BarCode string `json:"barCode,omitempty" codec:"barCode,omitempty"` // 条形码
WareLocation int `json:"wareLocation,omitempty" codec:"wareLocation,omitempty"` // 商品产地
Modified int64 `json:"modified,omitempty" codec:"modified,omitempty"` // 商品最后一次修改时间
Created int64 `json:"created,omitempty" codec:"created,omitempty"` // 商品创建时间,只读属性
OfflineTime int64 `json:"offlineTime,omitempty" codec:"offlineTime,omitempty"` // 最后下架时间
OnlineTime int64 `json:"onlineTime,omitempty" codec:"onlineTime,omitempty"` // 最后上架时间
ColType int `json:"colType,omitempty" codec:"colType,omitempty"` // 合作模式
Delivery int `json:"delivery,omitempty" codec:"delivery,omitempty"` // 发货地
AdWords *AdWords `json:"adWords,omitempty" codec:"adWords,omitempty"` // 商品广告词
Wrap string `json:"wrap,omitempty" codec:"wrap,omitempty"` // 包装规格
PackListing string `json:"packListing,omitempty" codec:"packListing,omitempty"` // 包装清单
Weight float64 `json:"weight,omitempty" codec:"weight,omitempty"` // 重
Width float64 `json:"width,omitempty" codec:"width,omitempty"` // 宽
Height float64 `json:"height,omitempty" codec:"height,omitempty"` // 高度
Length float64 `json:"length,omitempty" codec:"length,omitempty"` // 长
Props []SaleAttr `json:"props,omitempty" codec:"props,omitempty"` // 商品属性
Features []Feature `json:"features,omitempty" codec:"features,omitempty"` // 特殊属性集合
Images []Image `json:"images,omitempty" codec:"images,omitempty"` // 商品图片
ShopCategorys []int `json:"shopCategorys,omitempty" codec:"shopCategorys,omitempty"` // 店内分类
MobileDesc string `json:"mobileDesc,omitempty" codec:"mobileDesc,omitempty"` // 移动端详情
Introduction string `json:"introduction,omitempty" codec:"introduction,omitempty"` // PC端详情
ZhuangBaIntroduction string `json:"zhuangBaIntroduction,omitempty" codec:"zhuangBaIntroduction,omitempty"` // 装吧详情
ZhuangBaId string `json:"zhuangBaId,omitempty" codec:"zhuangBaId,omitempty"` // 商品描述装吧实例ID
IntroductionUseFlag string `json:"introductionUseFlag,omitempty" codec:"introductionUseFlag,omitempty"` // 商品描述使用标识 ,0:使用默认的商品描述,1:使用装吧商详
AfterSales string `json:"afterSales,omitempty" codec:"afterSales,omitempty"` // 售后服务
Logo string `json:"logo,omitempty" codec:"logo,omitempty"` // 商品主图
MarketPrice float64 `json:"marketPrice,omitempty" codec:"marketPrice,omitempty"` // 市场价
CostPrice float64 `json:"costPrice,omitempty" codec:"costPrice,omitempty"` // 成本价
JdPrice float64 `json:"jdPrice,omitempty" codec:"jdPrice,omitempty"` // 京东价
BrandName string `json:"brandName,omitempty" codec:"brandName,omitempty"` // 品牌名称
StockNum int `json:"stockNum,omitempty" codec:"stockNum,omitempty"` // 总库存数
CategorySecId int `json:"categorySecId,omitempty" codec:"categorySecId,omitempty"` // 二级叶子类目
ShopId int `json:"shopId,omitempty" codec:"shopId,omitempty"` // 商家对应的shopID,只读属性
PromiseId int `json:"promiseId,omitempty" codec:"promiseId,omitempty"` // 时效模板ID
MultiCategoryId int `json:"multiCategoryId,omitempty" codec:"multiCategoryId,omitempty"` // 四级类目ID
MultiCateProps []SaleAttr `json:"multiCateProps,omitempty" codec:"multiCateProps,omitempty"` // 四级类目属性列表
SellPoint string `json:"sellPoint,omitempty" codec:"sellPoint,omitempty"` // 卖点
WareTax *WareTax `json:"wareTax,omitempty" codec:"wareTax,omitempty"` // 税率
AfterSaleDesc string `json:"afterSaleDesc,omitempty" codec:"afterSaleDesc,omitempty"` // 售后图文详情
ZhuangBaMobileDesc string `json:"zhuangBaMobileDesc,omitempty" codec:"zhuangBaMobileDesc,omitempty"` // 移动版装吧商详
MobileZhuangBaId string `json:"mobileZhuangBaId,omitempty" codec:"mobileZhuangBaId,omitempty"` // 移动版装吧实例ID
MobileDescUseFlag string `json:"mobileDescUseFlag,omitempty" codec:"mobileDescUseFlag,omitempty"` // 移动版商品描述使用标识,0:使用默认的移动商详;1:使用装吧移动版商详
FitCaseHtmlPc string `json:"fitCaseHtmlPc,omitempty" codec:"fitCaseHtmlPc,omitempty"` // 装修案例PC版描述
FitCaseHtmlApp string `json:"fitCaseHtmlApp,omitempty" codec:"fitCaseHtmlApp,omitempty"` // 装修案例移动版描述
SpecialServices []string `json:"specialServices,omitempty" codec:"specialServices,omitempty"` // 特色服务,装修类目才可填写,装修类必填,最大为5,每个值最长为8个字符
ParentId uint64 `json:"parentId,omitempty" codec:"parentId,omitempty"` // 商品父ID
WareGroupId uint64 `json:"wareGroupId,omitempty" codec:"wareGroupId,omitempty"` // 商品分组ID
BusinessType string `json:"businessType,omitempty" codec:"businessType,omitempty"` // 商品业务类型
DesignConcept string `json:"designConcept,omitempty" codec:"designConcept,omitempty"` // 商品设计理念,适用范围是toplife类目
IsArchival bool `json:"isArchival,omitempty" codec:"isArchival,omitempty"` // 是否归档商品
TemplateIds string `json:"templateIds,omitempty" codec:"templateIds,omitempty"` // 关联版式
Skus []Sku `json:"skus,omitempty" codec:"skus,omitempty"`
OnlineTimeStr string `json:"OnlineTimeStr,omitempty" codec:"OnlineTimeStr,omitempty"` // 最后下架时间
OfflineTimeStr string `json:"offlineTimeStr,omitempty" codec:"offlineTimeStr,omitempty"` // 最后下架时间
}
func FindWareById ¶
func FindWareById(ctx context.Context, req *FindWareByIdRequest) (*Ware, error)
获取单个SKU
type WareBaseProductGetData ¶
type WareBaseProductGetData struct {
Code string `json:"code,omitempty" codec:"code,omitempty"`
Result []ProductsBase `json:"listproductbase_result,omitempty" codec:"listproductbase_result,omitempty"`
}
type WareBaseProductGetRequest ¶
type WareBaseProductGetRequest struct {
api.BaseRequest
Ids []uint64 `json:"ids,omitempty" codec:"ids,omitempty"` //
BaseFields string `json:"base_fields,omitempty" codec:"base_fields,omitempty"` // 自定义返回字段
}
type WareBaseProductGetResponse ¶
type WareBaseProductGetResponse struct {
ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"`
Data *WareBaseProductGetData `json:"jingdong_new_ware_baseproduct_get_responce,omitempty" codec:"jingdong_new_ware_baseproduct_get_responce,omitempty"`
}
func (WareBaseProductGetResponse) Error ¶ added in v1.1.1
func (r WareBaseProductGetResponse) Error() string
func (WareBaseProductGetResponse) IsError ¶ added in v1.1.1
func (r WareBaseProductGetResponse) IsError() bool
type WareTax ¶
type WareTax struct {
TaxCode string `json:"taxCode,omitempty" codec:"taxCode,omitempty"` // 税收编码(固定长度19位)
TaxRate float64 `json:"taxRate,omitempty" codec:"taxRate,omitempty"` // 税率(范围0.00~1.00)
IsTaxCheap uint8 `json:"isTaxCheap,omitempty" codec:"isTaxCheap,omitempty"` // 是否享受税收优惠政策(0:不享受;1:享受;)
TaxCheapContent string `json:"taxCheapContent,omitempty" codec:"taxCheapContent,omitempty"` // 享受税收优惠政策内容(最大长度32位)
ZeroTaxRate uint8 `json:"zeroTaxRate,omitempty" codec:"zeroTaxRate,omitempty"` // 零税率(0:出口退税;1:免税;2:不征收;3:普通零税率;)
}
Click to show internal directories.
Click to hide internal directories.