|
|
# 尺码属性管理接口服务定义
|
|
|
---------------------
|
|
|
|
|
|
# 添加尺码接口
|
|
|
|
|
|
> 接口名: `/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."
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
# 根据名称模糊查询获取一组尺码属性接口
|
|
|
|
|
|
> 接口名: `/product/querySizeAttributesByName`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|--------|----|----|----|--------|
|
|
|
|idName |String |长 |属性名称中包含的字词 |是|
|
|
|
---------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": [
|
|
|
{
|
|
|
"text": "衣长",
|
|
|
"id": 60
|
|
|
|
|
|
}
|
|
|
],
|
|
|
"md5": "dfc645ecb0c66c8d4771dd2a749047e8",
|
|
|
"message": "Product size get success."
|
|
|
}
|
|
|
|
|
|
``` |
|
|
# 品牌款型系列管理接口服务定义
|
|
|
---------------------
|
|
|
|
|
|
# 添加品牌款型系列接口
|
|
|
|
|
|
> 接口名: `/brandSeries/add`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|--------|----|----|----|--------|
|
|
|
|seriesName | string | 羽绒服系列 |名称|是|
|
|
|
|shopsId | int | 1 | 店铺id | 是|
|
|
|
|brandId | int | 1 | 店铺id下的某个品牌id | 是|
|
|
|
|type | int | 1 | 1:"品牌款型";2:"品牌系列" | 是|
|
|
|
|orderBy | int | 1 | 排序值 | 否|
|
|
|
---------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code":200,--若失败为500
|
|
|
"message":"success"
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
# 获取品牌款型系列列表(有分页)
|
|
|
|
|
|
> 接口名: `/brandSeries/queryAll`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|-------|----|----|----|-------|
|
|
|
|seriesName | string | 羽绒服系列 |名称|是|
|
|
|
|shopsId | int | 1 | 店铺id | 是|
|
|
|
|brandId | int | 1 | 店铺id下的某个品牌id | 是|
|
|
|
|type | int | 1 | 1:"品牌款型";2:"品牌系列" | 是|
|
|
|
--------------------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,--若失败为500
|
|
|
"data": {
|
|
|
"list": [
|
|
|
{
|
|
|
"brandId": 5,
|
|
|
"id": 48,
|
|
|
"seriesName": "test-cc-u",
|
|
|
"shopsId": 5,
|
|
|
"status": 1,
|
|
|
"type": 5
|
|
|
}
|
|
|
],
|
|
|
"page": 0,-第几页
|
|
|
"size": 0,-单页记录数
|
|
|
"total": 437,--总数
|
|
|
"totalPage": 1--总页数
|
|
|
},
|
|
|
"md5": "81531967e3291781f608555ca63ccd28",
|
|
|
"message": "success"
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
# 更新品牌款型系列接口
|
|
|
|
|
|
> 接口名: `/brandSeries/update`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|--------|----|----|----|--------|
|
|
|
|id|int|15|ID|是|
|
|
|
|seriesName | string | 羽绒服系列 |名称|否|
|
|
|
|shopsId | int | 1 | 店铺id | 否|
|
|
|
|brandId | int | 1 | 店铺id下的某个品牌id | 否|
|
|
|
|type | int | 1 | 1:"品牌款型";2:"品牌系列" | 否|
|
|
|
|orderBy | int | 1 | 排序值 | 否|
|
|
|
---------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,--若失败为500
|
|
|
"data": [],
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": "success"
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
# 获取单个品牌款型系列接口
|
|
|
|
|
|
> 接口名: `/brandSeries/queryById/{id}`
|
|
|
|
|
|
{id} 具体的品牌款型系列id值,数据类型:int
|
|
|
例:/brandSeries/queryById/14
|
|
|
|
|
|
http method : get & post all ok;
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|--------|----|----|----|--------|
|
|
|
|
|
|
---------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,--若失败为500
|
|
|
"data":{
|
|
|
"brandId": 286,
|
|
|
"id": 13,
|
|
|
"orderBy": 4,
|
|
|
"parentId": 0,
|
|
|
"seriesName": "Mikio Sakabe",
|
|
|
"shopsId": 1,
|
|
|
"status": 1
|
|
|
},
|
|
|
"md5": "dfc645ecb0c66c8d4771dd2a749047e8",
|
|
|
"message": "success"
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
# 打开品牌款型系列接口
|
|
|
|
|
|
> 接口名: `/brandSeries/open/{id}`
|
|
|
|
|
|
{id} 具体的品牌款型系列id值,数据类型:int
|
|
|
例:/brandSeries/open/14
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|--------|----|----|----|--------|
|
|
|
|
|
|
---------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,--若失败为500
|
|
|
"data": [],
|
|
|
"md5": "dfc645ecb0c66c8d4771dd2a749047e8",
|
|
|
"message": "success"
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
# 关闭品牌款型系列接口(restfull 风格)
|
|
|
|
|
|
> 接口名: `/brandSeries/close/{id}`
|
|
|
|
|
|
{id} 具体的品牌款型系列id值,数据类型:int
|
|
|
例:/brandSeries/close/14
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|--------|----|----|----|--------|
|
|
|
|
|
|
---------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,--若失败为500
|
|
|
"data": [ ],
|
|
|
"md5": "dfc645ecb0c66c8d4771dd2a749047e8",
|
|
|
"message": "success"
|
|
|
}
|
|
|
|
|
|
``` |
...
|
...
|
|