|
|
# 产品颜色管理接口服务定义
|
|
|
---------------------
|
|
|
|
|
|
# 添加颜色接口
|
|
|
|
|
|
> 接口名: `/productColor/addProductColor/`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|--------|----|----|----|--------|
|
|
|
|colorName|string|nike|颜色名称|是|
|
|
|
|colorCode|string|n|RGB code|是|
|
|
|
|colorValue|string|图片URL|一级分类|是|
|
|
|
|
|
|
---------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code":200,
|
|
|
"message":"success"
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
# 获取颜色列表
|
|
|
|
|
|
> 接口名: `/productColor/queryProductColors`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|-------|----|----|----|-------|
|
|
|
--------------------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": [
|
|
|
{
|
|
|
"colorCode": "FFFFFF",
|
|
|
"colorName": "白色",
|
|
|
"colorValue": "",
|
|
|
"id": 1
|
|
|
},
|
|
|
{
|
|
|
"colorCode": "333333",
|
|
|
"colorName": "黑色",
|
|
|
"colorValue": "",
|
|
|
"id": 2
|
|
|
},
|
|
|
{
|
|
|
"colorCode": "b9b7af",
|
|
|
"colorName": "灰色",
|
|
|
"colorValue": "",
|
|
|
"id": 3
|
|
|
},
|
|
|
{
|
|
|
"colorCode": "8b5402",
|
|
|
"colorName": "棕色",
|
|
|
"colorValue": "",
|
|
|
"id": 4
|
|
|
},
|
|
|
{
|
|
|
"colorCode": "47ba17",
|
|
|
"colorName": "绿色",
|
|
|
"colorValue": "",
|
|
|
"id": 6
|
|
|
},
|
|
|
{
|
|
|
"colorCode": "0000fe",
|
|
|
"colorName": "蓝色",
|
|
|
"colorValue": "",
|
|
|
"id": 7
|
|
|
},
|
|
|
{
|
|
|
"colorCode": "710098",
|
|
|
"colorName": "紫色",
|
|
|
"colorValue": "",
|
|
|
"id": 8
|
|
|
},
|
|
|
{
|
|
|
"colorCode": "ffeb00",
|
|
|
"colorName": "黄色",
|
|
|
"colorValue": "",
|
|
|
"id": 9
|
|
|
},
|
|
|
{
|
|
|
"colorCode": "ee0000",
|
|
|
"colorName": "红色",
|
|
|
"colorValue": "",
|
|
|
"id": 11
|
|
|
},
|
|
|
{
|
|
|
"colorCode": "ff5c01",
|
|
|
"colorName": "橙色",
|
|
|
"colorValue": "",
|
|
|
"id": 12
|
|
|
},
|
|
|
{
|
|
|
"colorCode": "#ccccc",
|
|
|
"colorName": "银色",
|
|
|
"colorValue": "http://img02.static.yohobuy.com/adpic/2014/01/27/13/02c286ddb8f5c6824a64a45ef6c8e2d18d.png",
|
|
|
"id": 13
|
|
|
},
|
|
|
{
|
|
|
"colorCode": "FFD83D",
|
|
|
"colorName": "金色",
|
|
|
"colorValue": "http://img01.static.yohobuy.com/adpic/2014/01/27/13/011443440339c06843acfd2f62fda68770.png",
|
|
|
"id": 14
|
|
|
},
|
|
|
{
|
|
|
"colorCode": "#fffff",
|
|
|
"colorName": "彩色",
|
|
|
"colorValue": "http://img02.static.yohobuy.com/adpic/2014/01/27/13/0272608508f09e2bf7eb5543bf5cc70d31.png",
|
|
|
"id": 15
|
|
|
}
|
|
|
],
|
|
|
"md5": "a05b6b224e8d517720865f0060b484ad",
|
|
|
"message": "success"
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 更新产品颜色接口
|
|
|
|
|
|
> 接口名: `/productColor/updateProductColor`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|--------|----|----|----|--------|
|
|
|
|id |int|1 |id |是 |
|
|
|
|colorName|string|nike|颜色名称|是|
|
|
|
|colorCode|string|n|RGB code|是|
|
|
|
|colorValue|string|图片URL|一级分类|是|
|
|
|
---------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": [],
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": " success."
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
# 获取单个产品颜色接口
|
|
|
|
|
|
> 接口名: `/productColor/queryProductColor`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|--------|----|----|----|--------|
|
|
|
|param|int|1|颜色ID|是
|
|
|
---------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"colorCode": "cc",
|
|
|
"colorName": "彩色",
|
|
|
"colorValue": "cc-value",
|
|
|
"id": 16
|
|
|
},
|
|
|
"md5": "d08f272cd425a5a89528299e5ab9ebdf",
|
|
|
"message": "success"
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
# 品类关联尺码属性管理接口服务定义
|
|
|
---------------------
|
|
|
|
|
|
# 添加品类关联尺码属性接口
|
|
|
|
|
|
> 接口名: `/sortAttribute/add/`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|--------|----|----|----|--------|
|
|
|
|sortId |int|1 |品类id |是 |
|
|
|
|attributeId|int|2|尺码属性id|是|
|
|
|
|orderBy|int|2|排序|否|
|
|
|
|
|
|
---------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code":200,
|
|
|
"message":"success"
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
# 获取品类关联尺码属性列表
|
|
|
|
|
|
> 接口名: `sortAttribute/queryList/`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|-------|----|----|----|-------|
|
|
|
|sortId |int|1 |品类id |是 |
|
|
|
|pageNumber|int|2|页码,默认1|是|
|
|
|
|pageSize|int|20|记录数,默认10|是|
|
|
|
--------------------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"content": [
|
|
|
{
|
|
|
"attributeId": 26,
|
|
|
"attributeName": "直径",
|
|
|
"orderBy": 0,
|
|
|
"sortId": 74,
|
|
|
"sortName": "戒指"
|
|
|
},
|
|
|
{
|
|
|
"attributeId": 44,
|
|
|
"attributeName": "周长",
|
|
|
"orderBy": 0,
|
|
|
"sortId": 74,
|
|
|
"sortName": "戒指"
|
|
|
},
|
|
|
{
|
|
|
"attributeId": 45,
|
|
|
"attributeName": "周长",
|
|
|
"orderBy": 0,
|
|
|
"sortId": 74,
|
|
|
"sortName": "戒指"
|
|
|
}
|
|
|
],
|
|
|
"number": 1,
|
|
|
"size": 30,
|
|
|
"totalElements": 3,
|
|
|
"totalPages": 1
|
|
|
},
|
|
|
"md5": "9d7cb51564aa667059932b0e4be237e9",
|
|
|
"message": "success"
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 更新品类关联尺码属性接口
|
|
|
|
|
|
> 接口名: `/sortAttribute/update`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|--------|----|----|----|--------|
|
|
|
|sortId |int|1 |品类id |是 |
|
|
|
|attributeId|int|2|尺码属性id|是|
|
|
|
|preAttributeId |int|1 |修改前尺码属性id |是 |
|
|
|
|orderBy|int|2|排序|否|
|
|
|
---------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": [],
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": " success."
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
# 删除品类关联尺码属性接口
|
|
|
|
|
|
> 接口名: `/sortAttribute/delete`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|--------|----|----|----|--------|
|
|
|
|sortId |int|1 |品类id |是 |
|
|
|
|attributeId|int|2|尺码属性id|是|
|
|
|
|
|
|
---------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": [],
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": " success."
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
# 获取单个品类关联尺码属性接口
|
|
|
|
|
|
> 接口名: `/sortAttribute/queryBySortAttr`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|--------|----|----|----|--------|
|
|
|
|sortId |int|1 |品类id |是 |
|
|
|
|attributeId|int|2|尺码属性id|是|
|
|
|
---------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"attributeId": 26,
|
|
|
"attributeName": "直径",
|
|
|
"orderBy": 0,
|
|
|
"sortId": 74,
|
|
|
"sortName": "戒指"
|
|
|
},
|
|
|
"md5": "354b1dbdc27b1d285dd2fc6743906f84",
|
|
|
"message": "success"
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
...
|
...
|
|