1
This commit is contained in:
@@ -455,13 +455,13 @@ func (a *API) RetailSkuDelete(trackInfo, poiCode, foodCode, skuID string) (err e
|
||||
return err
|
||||
}
|
||||
|
||||
//category/attr/list 根据末级类目id获取类目属性列表
|
||||
// CategoryAttrList 根据末级类目id获取类目属性列表
|
||||
//https://open-shangou.meituan.com/home/docDetail/386
|
||||
func (a *API) CategoryAttrList(tag_id int64) (categoryAttrListResult []*CategoryAttrListResult, err error) {
|
||||
func (a *API) CategoryAttrList(tagId int64) (categoryAttrListResult []*CategoryAttrListResult, err error) {
|
||||
result, err := a.AccessAPI("gw/category/attr/list", true, map[string]interface{}{
|
||||
"tag_id": tag_id,
|
||||
"tag_id": tagId,
|
||||
})
|
||||
if err == nil {
|
||||
if err == nil && result != nil {
|
||||
utils.Map2StructByJson(result.(map[string]interface{})["general_attrs"], &categoryAttrListResult, false)
|
||||
}
|
||||
return categoryAttrListResult, err
|
||||
|
||||
Reference in New Issue
Block a user