- RetailBatchInitData

This commit is contained in:
gazebo
2018-11-27 10:29:01 +08:00
parent 5816c5eaee
commit d09b345a05
2 changed files with 3 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ import (
) )
const ( const (
testPoiCode = "test_poi_01" testPoiCode = "100077"
) )
func TestPoiGetIDs(t *testing.T) { func TestPoiGetIDs(t *testing.T) {

View File

@@ -75,10 +75,10 @@ func (a *API) RetailList(poiCode string, offset, limit int) (foodList []map[stri
return nil, err return nil, err
} }
func (a *API) RetailBatchInitData(poiCode string, foodData map[string]interface{}) (err error) { func (a *API) RetailBatchInitData(poiCode string, foodDataList []map[string]interface{}) (err error) {
_, err = a.AccessAPI("retail/batchinitdata", false, map[string]interface{}{ _, err = a.AccessAPI("retail/batchinitdata", false, map[string]interface{}{
KeyAppPoiCode: poiCode, KeyAppPoiCode: poiCode,
"food_data": string(utils.MustMarshal(foodData)), "food_data": string(utils.MustMarshal(foodDataList)),
}) })
return err return err
} }