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) {