From f2539cf5722fbf605f732911bbe1a7081ed7230a Mon Sep 17 00:00:00 2001 From: gazebo Date: Wed, 24 Jul 2019 20:34:55 +0800 Subject: [PATCH] - fk --- platformapi/dadaapi/shop.go | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/platformapi/dadaapi/shop.go b/platformapi/dadaapi/shop.go index 1ea9fb62..5de88ba6 100644 --- a/platformapi/dadaapi/shop.go +++ b/platformapi/dadaapi/shop.go @@ -49,17 +49,30 @@ type ShopInfo struct { Status int `json:"status,omitempty"` // 查询用 } -type AddShopFailInfo struct { +type AddShopFailedInfo struct { Code int `json:"code"` ShopNo string `json:"shopNo"` Msg string `json:"msg"` ShopName string `json:"shopName"` } +type AddShopSuccessInfo struct { + AreaName string `json:"areaName"` + Business int `json:"business"` + CityName string `json:"cityName"` + ContactName string `json:"contactName"` + Lat float64 `json:"lat"` + Lng float64 `json:"lng"` + OriginShopID string `json:"originShopId"` + Phone string `json:"phone"` + StationAddress string `json:"stationAddress"` + StationName string `json:"stationName"` +} + type AddShopResult struct { - Success int `json:"success"` - SuccessList []*ShopInfo `json:"successList"` - FailedList []*AddShopFailInfo `json:"failedList"` + Success int `json:"success"` + SuccessList []*AddShopSuccessInfo `json:"successList"` + FailedList []*AddShopFailedInfo `json:"failedList"` } func (a *API) ShopDetail(originShopID string) (shopDetail *ShopInfo, err error) {