- weimobapi.QueryGoodsDetail added
This commit is contained in:
@@ -84,6 +84,17 @@ func (a *API) QueryGoodsList(pageNum, pageSize int, orderBy []map[string]interfa
|
||||
return nil, 0, err
|
||||
}
|
||||
|
||||
func (a *API) QueryGoodsDetail(goodsId int64) (retVal map[string]interface{}, err error) {
|
||||
apiParams := map[string]interface{}{
|
||||
"goodsId": goodsId,
|
||||
}
|
||||
result, err := a.AccessAPI("goods/queryGoodsDetail", apiParams)
|
||||
if err == nil {
|
||||
return result.(map[string]interface{})["goods"].(map[string]interface{}), nil
|
||||
}
|
||||
return nil, err
|
||||
}
|
||||
|
||||
func (a *API) QueryCategoryTree() (retVal []*Category, err error) {
|
||||
result, err := a.AccessAPI("category/queryCategoryTree", nil)
|
||||
if err == nil {
|
||||
|
||||
Reference in New Issue
Block a user