|
|
# 尺码管理接口服务定义
|
|
|
---------------------
|
|
|
|
|
|
# 添加尺码接口
|
|
|
|
|
|
> 接口名: `/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`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|-------|----|----|----|-------|
|
|
|
|page|int|1|页码|是|
|
|
|
|size|int|10|条数|是|
|
|
|
--------------------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"list": [
|
|
|
{
|
|
|
"id": 1,
|
|
|
"sizeName": "1"
|
|
|
},
|
|
|
{
|
|
|
"id": 2,
|
|
|
"sizeName": "10#"
|
|
|
},
|
|
|
{
|
|
|
"id": 3,
|
|
|
"sizeName": "10.5码"
|
|
|
},
|
|
|
{
|
|
|
"id": 4,
|
|
|
"sizeName": "10000"
|
|
|
},
|
|
|
{
|
|
|
"id": 5,
|
|
|
"sizeName": "105"
|
|
|
}
|
|
|
],
|
|
|
"page": 0,-第几页
|
|
|
"size": 0,-单页记录数
|
|
|
"total": 437,--总数
|
|
|
"totalPage": 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/querySizeByNameForSelect/`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|--------|----|----|----|--------|
|
|
|
|idName |String |码 |名称 |否|
|
|
|
|sortId|int | 2 |品类ID,品类关联尺码时使用 |否|
|
|
|
---------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
{
|
|
|
"id": "2",
|
|
|
"text": "10#"
|
|
|
},
|
|
|
{
|
|
|
"id": "3",
|
|
|
"text": "10.5码"
|
|
|
},
|
|
|
{
|
|
|
"id": "4",
|
|
|
"text": "10000"
|
|
|
},
|
|
|
{
|
|
|
"id": "5",
|
|
|
"text": "105"
|
|
|
}
|
|
|
},
|
|
|
"md5": "dfc645ecb0c66c8d4771dd2a749047e8",
|
|
|
"message": "success"
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
# 图案纹理接口服务定义
|
|
|
---------------------
|
|
|
|
|
|
|
|
|
# 查询所有图案纹理接口(用于页面多选)
|
|
|
|
|
|
> 接口名: `/productElements/queryProductElements4Select/`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|--------|----|----|----|--------|
|
|
|
|
|
|
---------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": [
|
|
|
{
|
|
|
"id": "1",
|
|
|
"text": "条纹"
|
|
|
},
|
|
|
{
|
|
|
"id": "2",
|
|
|
"text": "海魂"
|
|
|
},
|
|
|
{
|
|
|
"id": "3",
|
|
|
"text": "腰果花"
|
|
|
},
|
|
|
{
|
|
|
"id": "4",
|
|
|
"text": "豹纹"
|
|
|
},
|
|
|
{
|
|
|
"id": "5",
|
|
|
"text": "格纹"
|
|
|
},
|
|
|
{
|
|
|
"id": "6",
|
|
|
"text": "卡通"
|
|
|
},
|
|
|
{
|
|
|
"id": "7",
|
|
|
"text": "动物"
|
|
|
},
|
|
|
{
|
|
|
"id": "8",
|
|
|
"text": "撞色"
|
|
|
},
|
|
|
{
|
|
|
"id": "9",
|
|
|
"text": "纯色"
|
|
|
},
|
|
|
{
|
|
|
"id": "10",
|
|
|
"text": "骷髅"
|
|
|
},
|
|
|
{
|
|
|
"id": "11",
|
|
|
"text": "涂鸦"
|
|
|
},
|
|
|
{
|
|
|
"id": "12",
|
|
|
"text": "迷彩"
|
|
|
},
|
|
|
{
|
|
|
"id": "13",
|
|
|
"text": "波点"
|
|
|
},
|
|
|
{
|
|
|
"id": "14",
|
|
|
"text": "动物纹"
|
|
|
},
|
|
|
{
|
|
|
"id": "15",
|
|
|
"text": "人像"
|
|
|
},
|
|
|
{
|
|
|
"id": "16",
|
|
|
"text": "LOGO"
|
|
|
},
|
|
|
{
|
|
|
"id": "17",
|
|
|
"text": "数字字母"
|
|
|
},
|
|
|
{
|
|
|
"id": "18",
|
|
|
"text": "星星"
|
|
|
},
|
|
|
{
|
|
|
"id": "19",
|
|
|
"text": "渐变色"
|
|
|
},
|
|
|
{
|
|
|
"id": "20",
|
|
|
"text": "星空"
|
|
|
},
|
|
|
{
|
|
|
"id": "21",
|
|
|
"text": "千鸟格"
|
|
|
},
|
|
|
{
|
|
|
"id": "22",
|
|
|
"text": "花卉"
|
|
|
}
|
|
|
],
|
|
|
"md5": "4e99e4b293964790c38014175b3fd8c1",
|
|
|
"message": "成功"
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
|
...
|
...
|
|