|
|
# 尺码管理接口服务定义
|
|
|
# 尺码属性管理接口服务定义
|
|
|
---------------------
|
|
|
|
|
|
# 添加尺码接口
|
|
|
|
|
|
> 接口名: `/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."
|
...
|
...
|
|