log delete
This commit is contained in:
@@ -1,47 +1,48 @@
|
||||
package dadaapi
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"git.rosy.net.cn/baseapi"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
)
|
||||
|
||||
func TestShopDetail(t *testing.T) {
|
||||
result, err := dadaapi.ShopDetail("18180948107")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
baseapi.SugarLogger.Debug(utils.Format4Output(result, false))
|
||||
}
|
||||
|
||||
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: "666872",
|
||||
Status: 1,
|
||||
}
|
||||
err := dadaapi.ShopUpdate(shopInfo)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
//
|
||||
//import (
|
||||
// "testing"
|
||||
//
|
||||
// "git.rosy.net.cn/baseapi"
|
||||
// "git.rosy.net.cn/baseapi/utils"
|
||||
//)
|
||||
//
|
||||
//func TestShopDetail(t *testing.T) {
|
||||
// result, err := dadaapi.ShopDetail("18180948107")
|
||||
// if err != nil {
|
||||
// t.Fatal(err)
|
||||
// }
|
||||
// baseapi.SugarLogger.Debug(utils.Format4Output(result, false))
|
||||
//}
|
||||
//
|
||||
//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: "666872",
|
||||
// Status: 1,
|
||||
// }
|
||||
// err := dadaapi.ShopUpdate(shopInfo)
|
||||
// if err != nil {
|
||||
// t.Fatal(err)
|
||||
// }
|
||||
//}
|
||||
|
||||
Reference in New Issue
Block a user