- dada shop api added.
This commit is contained in:
24
platformapi/dadaapi/shop_test.go
Normal file
24
platformapi/dadaapi/shop_test.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package dadaapi
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"git.rosy.net.cn/baseapi"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
)
|
||||
|
||||
func TestShopDetail(t *testing.T) {
|
||||
result, err := dadaapi.ShopDetail("100119")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
baseapi.SugarLogger.Debug(utils.Format4Output(result, false))
|
||||
}
|
||||
|
||||
func TestShopAddl(t *testing.T) {
|
||||
result, err := dadaapi.ShopAdd("18180948107", "京西大本营", BusinessTypeFruitVegetable, "成都市", "金牛区", "西南交通大学科技大厦二楼", 104.056844, 30.695151, "徐先生", "18180948107", nil)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
baseapi.SugarLogger.Debug(result)
|
||||
}
|
||||
Reference in New Issue
Block a user