Authored by chenchao

update

# 产品颜色管理接口服务定义
---------------------
# 添加(更新)颜色接口
# 添加颜色接口
> 接口名: `/product/update`
> 接口名: `/productColor/addProductColor/`
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
|categoryName|string|nike|品类名称|是|
|categoryAbbr|string|n|品类缩写|是|
|firstCategory|string|根目录|一级分类|否|
|secondCategory|string|根目录|二级分类|否|
|thirdCategory|string|根目录|三级分类|否|
|categorySort|number|0|排序|否|
|categoryStatus|boolean|true|状态|否|
|id|int|1|品类ID|
|colorName|string|nike|颜色名称|是|
|colorCode|string|n|RGB code|是|
|colorValue|string|图片URL|一级分类|是|
---------------------
### 返回
... ... @@ -25,14 +21,14 @@
``` json
{
"code":200,
"message":"添加成功!"
"message":"success"
}
```
# 获取品类列表
# 获取颜色列表
> 接口名: `/product/getClassList`
> 接口名: `/productColor/queryProductColors`
### 入参
... ... @@ -66,44 +62,11 @@
```
# 添加产品属性接口
> 接口名: `/product/addProductAttribute`
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
|attributeName|string|衣长|属性名称|是|
|categoryId|number|6|目录ID|是|
|saleType|number|1|销售类型|是|
|inputType|string|checkbox|输入类型|是|
|attributeType|number|2|属性类型|否|
|isMust|String|N|是否必选|否|
|isSearch|String|Y|是否启动搜索|否|
|maxValueLen|number|50|最大输入值|否|
|isAllowAlias|String|N|是否允许别名|否|
|orderBy|number|0|排序|否|
|state|number|1|状态|否|
|remark|string|abc|备注|否|
|attributeValues|string|反光,毛呢,网布,皮革,麻,帆布|属性值|是|
|displayPosition|int|1|展示位置|是
---------------------
### 返回
``` json
{
"code": 200,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "Product Attribute Add success."
}
```
# 更新产品属性接口
# 更新产品颜色接口
> 接口名: `/product/updateProductAttribute`
... ... @@ -112,21 +75,10 @@
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
|attributId|int|15|属性ID|是|
|attributeName|string|衣长|属性名称|是|
|categoryId|number|6|目录ID|是|
|saleType|number|1|销售类型|是|
|inputType|string|checkbox|输入类型|是|
|attributeType|number|2|属性类型|否|
|isMust|String|N|是否必选|否|
|isSearch|String|Y|是否启动搜索|否|
|maxValueLen|number|50|最大输入值|否|
|isAllowAlias|String|N|是否允许别名|否|
|orderBy|number|0|排序|否|
|state|number|1|状态|否|
|remark|string|abc|备注|否|
|attributeValues|string|反光,毛呢,网布,皮革,麻,帆布|属性值|是|
|displayPosition|int|1|展示位置|是
|id |int|1 |id |是 |
|colorName|string|nike|颜色名称|是|
|colorCode|string|n|RGB code|是|
|colorValue|string|图片URL|一级分类|是|
---------------------
### 返回
... ... @@ -141,81 +93,18 @@
```
# 获取产品属性列表接口
> 接口名: `/product/queryProductAttributeList`
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
|categoryId|int|1|目录ID|是
---------------------
### 返回
``` json
{
"code": 200,
"data": [
{
"attributeId": 15,
"attributeName": "防风外套属性",
"attributeType": 2,
"attributeValues": "11",
"belong": 1,
"categoryId": 454,
"createTime": 1453951139,
"displayPosition": 1,
"inputType": "checkbox",
"isAllowAlias": "Y",
"isColor": "N",
"isMust": "Y",
"isSearch": "Y",
"maxValueLen": 50,
"orderBy": 0,
"remark": "备注",
"saleType": 0,
"state": 0
},
{
"attributeId": 16,
"attributeName": "纹理",
"attributeType": 2,
"attributeValues": "条纹,豹纹",
"belong": 1,
"categoryId": 454,
"createTime": 1453966719,
"displayPosition": 2,
"inputType": "checkbox",
"isAllowAlias": "N",
"isColor": "N",
"isMust": "N",
"isSearch": "N",
"maxValueLen": 50,
"orderBy": 0,
"remark": "备注",
"saleType": 0,
"state": 1
}
],
"md5": "b4a7dec9fb1b236e4aec02ba40411e42",
"message": "Product Attribute List."
}
```
# 获取产品单个属性列表接口
# 获取单个产品颜色接口
> 接口名: `/product/getProductAttribute`
> 接口名: `/product/queryProductColor`
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
|attributeId|int|1|属性ID|是
|param|int|1|颜色ID|是
---------------------
### 返回
... ... @@ -224,54 +113,14 @@
{
"code": 200,
"data": {
"attributeId": 22,
"attributeName": "材质",
"attributeType": 2,
"attributeValues": "反光,毛呢,网布,皮革,麻,帆布",
"belong": 1,
"categoryId": 6,
"createTime": 1453970276,
"displayPosition": 1,
"inputType": "checkbox",
"isAllowAlias": "N",
"isColor": "N",
"isMust": "N",
"isSearch": "N",
"maxValueLen": 50,
"orderBy": 0,
"remark": "备注",
"saleType": 1,
"state": 1
"colorCode": "cc",
"colorName": "hongse",
"colorValue": "cc-value",
"id": 16
},
"md5": "dfc645ecb0c66c8d4771dd2a749047e8",
"message": "Product Attribute get success."
"md5": "d08f272cd425a5a89528299e5ab9ebdf",
"message": "success"
}
```
# 获取产品列表
> 接口名: `/product/getList`
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
| | | | | |
---------------------
### 返回
``` json
{
code:200,
message:"",
data: {
list: [{
//...
}]
page: '', //当前第几页
size: '', //每页多少条
}
}
```
\ No newline at end of file
... ...