Authored by ping

update

@@ -107,131 +107,10 @@ shopRelation的json格式为: @@ -107,131 +107,10 @@ shopRelation的json格式为:
107 } 107 }
108 ``` 108 ```
109 109
110 -## 店铺同步  
111 -> 接口名: `/shops/synchronizeShop`  
112 -  
113 -### 入参  
114 -  
115 --------------------------  
116 -|属性名称|类型|例子|说明|  
117 -|--------|----|----|----|  
118 -|shopName|String|得宝旗舰店|店铺名称|  
119 -|shopNature|int|1|店铺性质(1 旗舰店 2 专卖店)|  
120 -|shopDomain|String|debao|店铺域名|  
121 -|createPid|int|1|创建人ID|  
122 -shopLogo|String|http://img11.static.yhbimg.com/yhb-img01/2015/09/11/02/01f42dff5d5bd383af1025eea1218cbccc.jpg?imageView/{mode}/w/{width}/h/{height}|店铺logo|  
123 -|shopIntro|String|秉承以设计为核心的创新理念,用专业的思维方式将自然与科技、传统与革新、技艺与时尚三者良好融合,着重面料材质与软式廓型的品质互动,更好的诠释“less is more”的设计理念。|店铺简介|  
124 -|shopAdmin|JSON数组|||  
125 -|shopRelation|JSON数组|||  
126 -|websiteUrl|JSON数组|["www.paperworks.com.cn"]||  
127 -|otherUrl|JSON数组|["www.paperworks.com.cn","https:\/\/jnby.tmall.com\/"]||  
128 -|shopAddress|JSON数组|||  
129 ----------------------------  
130 -  
131 -### 返回  
132 -  
133 -```json  
134 -  
135 -{  
136 - "code":200  
137 - "message":"修改成功"  
138 -}  
139 -{  
140 - "code":500  
141 - "message":"shops_id is null"  
142 -}  
143 -{  
144 - "code":500  
145 - "message":"shop_name is null"  
146 -}  
147 -{  
148 - "code":500  
149 - "message":"Sorry,店铺名已存在"  
150 -}  
151 -{  
152 - "code":500  
153 - "message":"shop_domain is null"  
154 -}  
155 -{  
156 - "code":500  
157 - "message":"Sorry,域名已存在"  
158 -}  
159 -```  
160 -  
161 -## 根据店铺名查看是否存在  
162 -  
163 -> 接口名:`/shops/checkByShopName`  
164 -  
165 -### 入参  
166 -  
167 --------------------------  
168 -|属性名称|类型|例子|说明|  
169 -|--------|----|----|----|  
170 -|shopName|String|得宝旗舰店|店铺名称|  
171 -|shopsId|int|15|店铺ID|  
172 --------------------  
173 -  
174 -### 返回  
175 -  
176 -```json  
177 -{  
178 - "code":500,  
179 - "message":"shop_name is null"  
180 -}  
181 -{  
182 - "code":500,  
183 - "message":"shops_id is null"  
184 -}  
185 -{  
186 - "code":400,  
187 - "message":"false"  
188 -}  
189 -{  
190 - "code":200,  
191 - "message":"true"  
192 -}  
193 -```  
194 -  
195 -  
196 -## 根据店铺域名查看是否存在  
197 -  
198 -> 接口名: `/shops/checkByShopDomain`  
199 -  
200 -### 入参  
201 -  
202 --------------------------  
203 -|属性名称|类型|例子|说明|  
204 -|--------|----|----|----|  
205 -|shopDomain|String|debao|店铺域名|  
206 -|shopsId|int|15|店铺ID|  
207 ------------------------------  
208 -  
209 -### 返回  
210 -  
211 -```json  
212 -  
213 -{  
214 - "code":500,  
215 - "message":"shop_name is null"  
216 -}  
217 -{  
218 - "code":500,  
219 - "message":"shops_id is null"  
220 -}  
221 -{  
222 - "code":400,  
223 - "message":"false"  
224 -}  
225 -{  
226 - "code":200,  
227 - "message":"true"  
228 -}  
229 -  
230 -```  
231 110
232 ## 获取店铺详情 111 ## 获取店铺详情
233 112
234 -> 接口名: `/shops/getDetailByShopId` 113 +> 接口名: `/ShopsRest/getShopDetailById`
235 114
236 ### 入参 115 ### 入参
237 116
@@ -246,66 +125,62 @@ shopLogo|String|http://img11.static.yhbimg.com/yhb-img01/2015/09/11/02/01f42dff5 @@ -246,66 +125,62 @@ shopLogo|String|http://img11.static.yhbimg.com/yhb-img01/2015/09/11/02/01f42dff5
246 ```json 125 ```json
247 126
248 { 127 {
249 - "code":400,  
250 - "message":"店铺id有误"  
251 -}  
252 -{  
253 - "code":400,  
254 - "message":"shopInfo is none"  
255 -}  
256 -{  
257 - "code":200  
258 - "message":"ok"  
259 - "data": 128 + "code": 200,
  129 + "data": {
  130 + "checkStatus": 200,
  131 + "createTime": "2016-01-29 23:11:00",
  132 + "otherUrl": "other,other2",
  133 + "shopAddress": "地址1,地址2",
  134 + "shopDomain": "shopDomain2311",
  135 + "shopIntro": "shopIntro",
  136 + "shopLogo": "http:///yhfairshopLogo?imageView/1/w/200/h/200",
  137 + "shopName": "店铺名称1234",
  138 + "shopNature": 1,
  139 + "shopRelationList": [
260 { 140 {
  141 + "agreementEndTime": "2016-03-31 00:00:00",
  142 + "brandId": 178,
  143 + "brandName": "Artanky",
  144 + "brandNameCn": "",
  145 + "brandNameEn": "Artanky ",
  146 + "brandStatus": 1,
  147 + "isFreeze": "N",
  148 + "supplierId": 480,
  149 + "supplierName": "成都朋克汉堡服装有限公司",
  150 + "supplierStatus": 300
  151 + },
261 { 152 {
262 - "shopsId": 15,  
263 - "shopName": "",  
264 - "shopDomain": "",  
265 - "shopNature": "",  
266 - "shopLogo": "",  
267 - "websiteUrl": "",  
268 - "shopAddress": "",  
269 - "createPid": "",  
270 - "checkStatus": "",  
271 - "createTime": "",  
272 - "updateTime": "",  
273 - "status": "" 153 + "agreementEndTime": "2017-01-31 00:00:00",
  154 + "brandId": 355,
  155 + "brandName": "TMCAZ",
  156 + "brandNameCn": "磨叽星人",
  157 + "brandNameEn": "TMCAZ",
  158 + "brandStatus": 1,
  159 + "isFreeze": "N",
  160 + "supplierId": 310,
  161 + "supplierName": "上海贺王工贸实业公司",
  162 + "supplierStatus": 300
274 }, 163 },
275 - "shopsAdmin": [{  
276 - "id": "",  
277 - "shopsId": "",  
278 - "adminPid": "",  
279 - "identity": "",  
280 - "createTime": "",  
281 - "updateTime": ""  
282 - },{  
283 - "id": "",  
284 - "shopsId": "",  
285 - "adminPid": "",  
286 - "identity": "",  
287 - "createTime": "",  
288 - "updateTime": ""  
289 - }],  
290 - "shopRelation": [{  
291 - "id": "",  
292 - "shopsId": "",  
293 - "brandId": "",  
294 - "supplierId": "",  
295 - "createTime": "",  
296 - "updateTime": "",  
297 - "agreementEndTime": ""  
298 - },{  
299 - "id": "",  
300 - "shopsId": "",  
301 - "brandId": "",  
302 - "supplierId": "",  
303 - "createTime": "",  
304 - "updateTime": "",  
305 - "agreementEndTime": ""  
306 - }]  
307 - } 164 + {
  165 + "agreementEndTime": "2016-12-19 00:00:00",
  166 + "brandId": 1389,
  167 + "brandName": "WWTorres",
  168 + "brandNameCn": "",
  169 + "brandNameEn": "WWTorres",
  170 + "brandStatus": 1,
  171 + "isFreeze": "N",
  172 + "supplierId": 1226,
  173 + "supplierName": "上海矩乐文化发展有限公司",
  174 + "supplierStatus": 300
308 } 175 }
  176 + ],
  177 + "shopsId": 454,
  178 + "shopsType": 2,
  179 + "status": 0,
  180 + "updateTime": "2016-01-29 23:27:05",
  181 + "websiteUrl": "https,https2"
  182 + },
  183 + "message": "操作成功"
309 } 184 }
310 ``` 185 ```
311 186