Authored by chenchao

create mode 4 品类关联尺码属性

# 产品颜色管理接口服务定义
---------------------
# 添加颜色接口
> 接口名: `/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"
}
```
... ...