|
|
# 尺码管理接口服务定义
|
|
|
---------------------
|
|
|
|
|
|
# 添加尺码接口
|
|
|
|
|
|
> 接口名: `/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/addSortSize`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|--------|----|----|----|--------|
|
|
|
|sortId|int|1|分类id|是|
|
|
|
|sizeId|int|2|尺码id|是|
|
|
|
|orderBy|int|3|排序|是|
|
|
|
|
|
|
|
|
|
---------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code":200,
|
|
|
"message":"添加成功!"
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
# 获取品类尺码列表(没有分页)
|
|
|
|
|
|
> 接口名: `/product/querySizeListBySortId`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|sortId|int |1 |分类id|是|
|
|
|
|-------|----|----|----|-------|
|
|
|
--------------------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"list": [
|
|
|
{
|
|
|
"orderBy": 1,
|
|
|
"sizeId": 199,
|
|
|
"sizeName": "F",
|
|
|
"sortId": 72,
|
|
|
"sortName": "耳钉/耳环"
|
|
|
},
|
|
|
{
|
|
|
"orderBy": 1,
|
|
|
"sizeId": 201,
|
|
|
"sizeName": "L",
|
|
|
"sortId": 72,
|
|
|
"sortName": "耳钉/耳环"
|
|
|
},
|
|
|
{
|
|
|
"orderBy": 1,
|
|
|
"sizeId": 203,
|
|
|
"sizeName": "M",
|
|
|
"sortId": 72,
|
|
|
"sortName": "耳钉/耳环"
|
|
|
},
|
|
|
{
|
|
|
"orderBy": 1,
|
|
|
"sizeId": 204,
|
|
|
"sizeName": "M/L",
|
|
|
"sortId": 72,
|
|
|
"sortName": "耳钉/耳环"
|
|
|
},
|
|
|
{
|
|
|
"orderBy": 1,
|
|
|
"sizeId": 207,
|
|
|
"sizeName": "S",
|
|
|
"sortId": 72,
|
|
|
"sortName": "耳钉/耳环"
|
|
|
},
|
|
|
{
|
|
|
"orderBy": 1,
|
|
|
"sizeId": 211,
|
|
|
"sizeName": "XL",
|
|
|
"sortId": 72,
|
|
|
"sortName": "耳钉/耳环"
|
|
|
},
|
|
|
{
|
|
|
"orderBy": 1,
|
|
|
"sizeId": 213,
|
|
|
"sizeName": "XS",
|
|
|
"sortId": 72,
|
|
|
"sortName": "耳钉/耳环"
|
|
|
},
|
|
|
{
|
|
|
"orderBy": 1,
|
|
|
"sizeId": 214,
|
|
|
"sizeName": "XS/S",
|
|
|
"sortId": 72,
|
|
|
"sortName": "耳钉/耳环"
|
|
|
},
|
|
|
{
|
|
|
"orderBy": 1,
|
|
|
"sizeId": 216,
|
|
|
"sizeName": "XXL",
|
|
|
"sortId": 72,
|
|
|
"sortName": "耳钉/耳环"
|
|
|
},
|
|
|
{
|
|
|
"orderBy": 1,
|
|
|
"sizeId": 217,
|
|
|
"sizeName": "XXS",
|
|
|
"sortId": 72,
|
|
|
"sortName": "耳钉/耳环"
|
|
|
},
|
|
|
{
|
|
|
"orderBy": 1,
|
|
|
"sizeId": 218,
|
|
|
"sizeName": "XXXL",
|
|
|
"sortId": 72,
|
|
|
"sortName": "耳钉/耳环"
|
|
|
},
|
|
|
{
|
|
|
"orderBy": 1,
|
|
|
"sizeId": 348,
|
|
|
"sizeName": "XXXXL",
|
|
|
"sortId": 72,
|
|
|
"sortName": "耳钉/耳环"
|
|
|
}
|
|
|
],
|
|
|
"page": 0,
|
|
|
"size": 0,
|
|
|
"total": 0,
|
|
|
"totalPage": 0
|
|
|
}
|
|
|
"md5": "4ebf5e614102a54b0025164d794f8032",
|
|
|
"message": "sortsize List."
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 删除单个品类尺码接口
|
|
|
|
|
|
> 接口名: `/product/deleteSortSize`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|--------|----|----|----|--------|
|
|
|
|sortId|int|1|分类id|是|
|
|
|
|sizeId|int|2|尺码id|是|
|
|
|
---------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"md5": "dfc645ecb0c66c8d4771dd2a749047e8",
|
|
|
"message": "sortsize delete success."
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
...
|
...
|
|