Authored by mali

接口文档

... ... @@ -696,3 +696,136 @@
}
```
# 新增搭配信息
> 接口名: `/collocation/insertCollocation`
### 入参
{"productSkn":50000055, "imageUrl":"imageUrl","content":"content","orderBy":1,"infoStr":"[{"id":50017821,"width":"295","height":"394","top":"151","left":"230","label":"50017821"}]"}
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
|productSkn|number||商品skn||
|imageUrl|字符串||图片URL||
|content|字符串||搭配介绍||
|orderBy|number||顺序值|从1开始|
|infoStr|json字符串||搭配的方位信息||
---------------------
### 返回
``` json
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "insert collocation success."
}
```
# 修改搭配信息
> 接口名: `/collocation/insertCollocation`
### 入参
{"id":1 "productSkn":50000055, "imageUrl":"imageUrl","content":"content","orderBy":1,"infoStr":"[{"id":50017821,"width":"295","height":"394","top":"151","left":"230","label":"50017821"}]"}
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
|id|number||搭配的id|必填|
|imageUrl|字符串||图片URL||
|content|字符串||搭配介绍||
|orderBy|number||顺序值|从1开始|
|infoStr|json字符串||搭配的方位信息||
---------------------
### 返回
``` json
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "update collocation success."
}
```
# 删除搭配信息
> 接口名: `/collocation/delCollocationById`
### 入参
{"param":28952 }
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
|id|number||搭配的id|必填|
---------------------
### 返回
``` json
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "delete collocation success."
}
```
# 获取单个搭配信息
> 接口名: `/collocation/selectCollocationById`
### 入参
{"param":28952 }
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
|id|number||搭配的id|必填|
---------------------
### 返回
``` json
{
"code": 200,
"data": {
"content": "content1",
"createTime": 1457083379,
"id": 28952,
"imageUrl": "http:///goodsimgimageUrl1?imageView/1/w/150/h/150",
"info": [
{
"height": 394,
"id": 50017831,
"label": "50017821",
"left": 230,
"top": 151,
"width": 299
}
],
"orderBy": 1,
"productSkn": 50000055
},
"md5": "a375479b786f4c747d39c6066f4d147e",
"message": "query collocation success."
}
```
\ No newline at end of file
... ...