- RetailBatchInitData
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
testPoiCode = "test_poi_01"
|
||||
testPoiCode = "100077"
|
||||
)
|
||||
|
||||
func TestPoiGetIDs(t *testing.T) {
|
||||
|
||||
@@ -75,10 +75,10 @@ func (a *API) RetailList(poiCode string, offset, limit int) (foodList []map[stri
|
||||
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{}{
|
||||
KeyAppPoiCode: poiCode,
|
||||
"food_data": string(utils.MustMarshal(foodData)),
|
||||
"food_data": string(utils.MustMarshal(foodDataList)),
|
||||
})
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user