Authored by chenchao

Merge branch 'develop' of http://git.dev.yoho.cn/platform/yohobuy-doc into develop

... ... @@ -42,7 +42,8 @@
``` json
{
"code": 200,
"data": [
"data":{
"list" :[
{
"colorCode": "FFFFFF",
"colorName": "白色",
... ... @@ -121,7 +122,11 @@
"colorValue": "http://img02.static.yohobuy.com/adpic/2014/01/27/13/0272608508f09e2bf7eb5543bf5cc70d31.png",
"id": 15
}
],
]
"page": 0,-第几页
"size": 0,-单页记录数
"total": 437,--总数
"totalPage": 1--总页数},
"md5": "a05b6b224e8d517720865f0060b484ad",
"message": "success"
}
... ...
# 尺码管理接口服务定义
# 尺码属性管理接口服务定义
---------------------
# 添加尺码接口
> 接口名: `/product/addSize`
> 接口名: `/product/addSizeAttribute`
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
|sizeName|string|L|名称|是|
|attributeName|string|后中长|名称|是|
---------------------
... ... @@ -24,48 +24,10 @@
```
# 获取尺码列表(没有分页)
> 接口名: `/product/queryAllSizeList`
# 获取尺码属性列表(有分页)
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|
|-------|----|----|----|-------|
--------------------------------
### 返回
``` json
{
"code": 200,
"data": [
{
"id": 1,
"sizeName": "1"
},
{
"id": 2,
"sizeName": "10#"
},
{
"id": 3,
"sizeName": "10.5码"
},
{
"id": 4,
"sizeName": "10000"
}],
"md5": "4ebf5e614102a54b0025164d794f8032",
"message": "Product size List."
}
```
# 获取尺码列表(有分页)
> 接口名: `/product/querySizeList`
> 接口名: `/product/querySizeAttributeList`
### 入参
... ... @@ -82,32 +44,37 @@
{
"code": 200,
"data": {
"content": [
"list": [
{
"id": 1,
"sizeName": "1"
"attributeName": "衣长",
"id": 60,
"orderBy": 0
},
{
"id": 2,
"sizeName": "10#"
"attributeName": "胸底围",
"id": 61,
"orderBy": 0
},
{
"id": 3,
"sizeName": "10.5码"
"attributeName": "防水台",
"id": 62,
"orderBy": 1
},
{
"id": 4,
"sizeName": "10000"
"attributeName": "品牌尺寸",
"id": 63,
"orderBy": 1
},
{
"id": 5,
"sizeName": "105"
"attributeName": "半径",
"id": 64,
"orderBy": 1
}
],
"number": 0,-第几页
"page": 0,-第几页
"size": 0,-单页记录数
"totalElements": 437,--总数
"totalPages": 1--总页数
"total": 437,--总数
"totalPage": 1--总页数
},
"md5": "81531967e3291781f608555ca63ccd28",
"message": "Product size List."
... ... @@ -116,9 +83,9 @@
```
# 更新尺码接口
# 更新尺码属性接口
> 接口名: `/product/updateSize`
> 接口名: `/product/updateSizeAttribute`
### 入参
... ... @@ -126,7 +93,7 @@
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
|id|int|15|ID|是|
|sizeName|string|L|名称|是|
|attributeName|string|后中长|名称|是|
---------------------
### 返回
... ... @@ -143,9 +110,9 @@
# 获取单个尺码接口
# 获取单个尺码属性接口
> 接口名: `/product/getSize`
> 接口名: `/product/getSizeAttribute`
### 入参
... ... @@ -160,9 +127,10 @@
``` json
{
"code": 200,
"data": {
"id": 9,
"sizeName": "10.5码"
"data":{
"attributeName": "半径",
"id": 64,
"orderBy": 1
},
"md5": "dfc645ecb0c66c8d4771dd2a749047e8",
"message": "Product size get success."
... ...
... ... @@ -82,7 +82,7 @@
{
"code": 200,
"data": {
"content": [
"list": [
{
"id": 1,
"sizeName": "1"
... ... @@ -104,10 +104,10 @@
"sizeName": "105"
}
],
"number": 0,-第几页
"page": 0,-第几页
"size": 0,-单页记录数
"totalElements": 437,--总数
"totalPages": 1--总页数
"total": 437,--总数
"totalPage": 1--总页数
},
"md5": "81531967e3291781f608555ca63ccd28",
"message": "Product size List."
... ...