- 达达与美团配送的接口修改为较正式参数

This commit is contained in:
gazebo
2019-07-23 09:12:33 +08:00
parent 7ac11981b3
commit 7242dd435e
9 changed files with 255 additions and 81 deletions

View File

@@ -15,10 +15,33 @@ func TestShopDetail(t *testing.T) {
baseapi.SugarLogger.Debug(utils.Format4Output(result, false))
}
func TestShopAddl(t *testing.T) {
result, err := dadaapi.ShopAdd("18180948107", "京西大本营", BusinessTypeFruitVegetable, "成都市", "金牛区", "西南交通大学科技大厦二楼", 104.056844, 30.695151, "徐先生", "18180948107", nil)
func TestShopAdd(t *testing.T) {
shopInfo := &ShopInfo{
OriginShopID: "181809481071",
StationName: "京西大本营2",
Business: BusinessTypeFruitVegetable,
CityName: "成都市",
AreaName: "金牛区",
StationAddress: "西南交通大学科技大厦二楼",
Lng: 104.056844,
Lat: 30.695151,
ContactName: "徐先生",
Phone: "18180948107",
}
result, err := dadaapi.ShopAdd(shopInfo)
if err != nil {
t.Fatal(err)
}
baseapi.SugarLogger.Debug(result)
}
func TestShopUpdate(t *testing.T) {
shopInfo := &ShopInfo{
OriginShopID: "18180948107",
StationName: "京西大本营234",
}
err := dadaapi.ShopUpdate(shopInfo)
if err != nil {
t.Fatal(err)
}
}