Documentation ¶
Overview ¶
定义分类以及分类的一般属性和sku属性
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Category ¶
获取指定分类的所有子分类 成功时返回结果的数据结构
{ "errcode": 0, "errmsg": "success", "cate_list": [ { "id": "537074292", "name": "数码相机" }, { "id": "537074293", "name": "家用摄像机" }, { "id": "537074298", "name": "单反相机" }, { "id": "537082412", "name": "镜头" }, { "id": "537102001", "name": "单电/微单" } ] }
type Property ¶
type Property struct { Id string `json:"id"` // 属性id, int64? Name string `json:"name"` // 属性name Values []struct { Id string `json:"id"` // 属性值id, int64? Name string `json:"name"` // 属性值name } `json:"property_value,omitempty"` }
获取指定分类的所有属性 成功时返回结果的数据结构
{ "id": "1075741879", "name": "品牌", "property_value": [ { "id": "200050867", "name": "VIC&" }, { "id": "200050868", "name": "Kate&" }, { "id": "200050971", "name": "M&" }, { "id": "200050972", "name": "Black&" } ] }
type SKU ¶
type SKU struct { Id string `json:"id"` // int64? Name string `json:"name"` Values []struct { Id string `json:"id"` // int64? Name string `json:"name"` } `json:"value_list,omitempty"` }
获取指定子分类的所有SKU 成功时返回结果的数据结构
{ "id": "1075741873", "name": "颜色", "value_list": [ { "id": "1079742375", "name": "撞色" }, { "id": "1079742376", "name": "桔色" } ] }
Click to show internal directories.
Click to hide internal directories.