|
|
# 尺码管理接口服务定义
|
|
|
---------------------
|
|
|
|
|
|
# 添加尺码接口
|
|
|
|
|
|
> 接口名: `/product/addSize`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|--------|----|----|----|--------|
|
|
|
|sizeName|string|L|名称|是|
|
|
|
|
|
|
---------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code":200,
|
|
|
"message":"添加成功!"
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
# 获取尺码列表(没有分页)
|
|
|
|
|
|
> 接口名: `/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`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|-------|----|----|----|-------|
|
|
|
|curPage|int|1|页码|是|
|
|
|
|pageSize|int|10|条数|是|
|
|
|
--------------------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"content": [
|
|
|
{
|
|
|
"id": 1,
|
|
|
"sizeName": "1"
|
|
|
},
|
|
|
{
|
|
|
"id": 2,
|
|
|
"sizeName": "10#"
|
|
|
},
|
|
|
{
|
|
|
"id": 3,
|
|
|
"sizeName": "10.5码"
|
|
|
},
|
|
|
{
|
|
|
"id": 4,
|
|
|
"sizeName": "10000"
|
|
|
},
|
|
|
{
|
|
|
"id": 5,
|
|
|
"sizeName": "105"
|
|
|
}
|
|
|
],
|
|
|
"number": 0,-第几页
|
|
|
"size": 0,-单页记录数
|
|
|
"totalElements": 437,--总数
|
|
|
"totalPages": 1--总页数
|
|
|
},
|
|
|
"md5": "81531967e3291781f608555ca63ccd28",
|
|
|
"message": "Product size List."
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
# 更新尺码接口
|
|
|
|
|
|
> 接口名: `/product/updateSize`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|--------|----|----|----|--------|
|
|
|
|id|int|15|ID|是|
|
|
|
|sizeName|string|L|名称|是|
|
|
|
---------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": [],
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": "size update success."
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
# 获取单个尺码接口
|
|
|
|
|
|
> 接口名: `/product/getSize`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|--------|----|----|----|--------|
|
|
|
|id |int |15 |ID |是|
|
|
|
---------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"id": 9,
|
|
|
"sizeName": "10.5码"
|
|
|
},
|
|
|
"md5": "dfc645ecb0c66c8d4771dd2a749047e8",
|
|
|
"message": "Product size get success."
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
# 尺码属性管理接口服务定义
|
|
|
---------------------
|
|
|
|
|
|
# 添加尺码接口
|
|
|
|
|
|
> 接口名: `/product/addSizeAttribute`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|--------|----|----|----|--------|
|
|
|
|attributeName|string|后中长|名称|是|
|
|
|
|
|
|
---------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code":200,
|
|
|
"message":"添加成功!"
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
# 获取尺码属性列表(有分页)
|
|
|
|
|
|
> 接口名: `/product/querySizeAttributeList`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|-------|----|----|----|-------|
|
|
|
|curPage|int|1|页码|是|
|
|
|
|pageSize|int|10|条数|是|
|
|
|
--------------------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"list": [
|
|
|
{
|
|
|
"attributeName": "衣长",
|
|
|
"id": 60,
|
|
|
"orderBy": 0
|
|
|
},
|
|
|
{
|
|
|
"attributeName": "胸底围",
|
|
|
"id": 61,
|
|
|
"orderBy": 0
|
|
|
},
|
|
|
{
|
|
|
"attributeName": "防水台",
|
|
|
"id": 62,
|
|
|
"orderBy": 1
|
|
|
},
|
|
|
{
|
|
|
"attributeName": "品牌尺寸",
|
|
|
"id": 63,
|
|
|
"orderBy": 1
|
|
|
},
|
|
|
{
|
|
|
"attributeName": "半径",
|
|
|
"id": 64,
|
|
|
"orderBy": 1
|
|
|
}
|
|
|
],
|
|
|
"page": 0,-第几页
|
|
|
"size": 0,-单页记录数
|
|
|
"total": 437,--总数
|
|
|
"totalPage": 1--总页数
|
|
|
},
|
|
|
"md5": "81531967e3291781f608555ca63ccd28",
|
|
|
"message": "Product size List."
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
# 更新尺码属性接口
|
|
|
|
|
|
> 接口名: `/product/updateSizeAttribute`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|--------|----|----|----|--------|
|
|
|
|id|int|15|ID|是|
|
|
|
|attributeName|string|后中长|名称|是|
|
|
|
---------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": [],
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": "size update success."
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
# 获取单个尺码属性接口
|
|
|
|
|
|
> 接口名: `/product/getSizeAttribute`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|--------|----|----|----|--------|
|
|
|
|id |int |15 |ID |是|
|
|
|
---------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data":{
|
|
|
"attributeName": "半径",
|
|
|
"id": 64,
|
|
|
"orderBy": 1
|
|
|
},
|
|
|
"md5": "dfc645ecb0c66c8d4771dd2a749047e8",
|
|
|
"message": "Product size get success."
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
...
|
...
|
|