|
|
# 产品颜色管理接口服务定义
|
|
|
# 文件上传接口服务定义
|
|
|
---------------------
|
|
|
|
|
|
# 添加颜色接口
|
|
|
|
|
|
> 接口名: `/productColor/addProductColor/`
|
|
|
> 接口名: `/fileupload/upload/`
|
|
|
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|--------|----|----|----|--------|
|
|
|
|colorName|string|nike|颜色名称|是|
|
|
|
|colorCode|string|n|RGB code|是|
|
|
|
|colorValue|string|图片URL|一级分类|是|
|
|
|
|file|file|-|颜色名称|是|
|
|
|
|userId|int|543883|用户id|是|
|
|
|
|bucket|string|smart|bucket|是|
|
|
|
|
|
|
---------------------
|
|
|
|
...
|
...
|
@@ -21,106 +22,9 @@ |
|
|
``` json
|
|
|
{
|
|
|
"code":200,
|
|
|
"data" : "url", --图片URL
|
|
|
"message":"success"
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
# 获取颜色列表
|
|
|
|
|
|
> 接口名: `/productColor/queryProductColors`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|-------|----|----|----|-------|
|
|
|
--------------------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
code:200,
|
|
|
message:"",
|
|
|
data: {
|
|
|
list: [{
|
|
|
categoryName: '', //品类名称
|
|
|
categoryAbbr: '', //品类缩写
|
|
|
firstCategory: '', //一级分类
|
|
|
secondCategory: '', //二级分类
|
|
|
thirdCategory: '', //三级分类
|
|
|
categorySort: '', //排序
|
|
|
categoryStatus: '',//状态,
|
|
|
id: '', //品类ID
|
|
|
}]
|
|
|
page: '', //当前第几页
|
|
|
size: '', //每页多少条
|
|
|
}
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 更新产品颜色接口
|
|
|
|
|
|
> 接口名: `/product/updateProductAttribute`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|--------|----|----|----|--------|
|
|
|
|id |int|1 |id |是 |
|
|
|
|colorName|string|nike|颜色名称|是|
|
|
|
|colorCode|string|n|RGB code|是|
|
|
|
|colorValue|string|图片URL|一级分类|是|
|
|
|
---------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": [],
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": "Product Attribute update success."
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
# 获取单个产品颜色接口
|
|
|
|
|
|
> 接口名: `/product/queryProductColor`
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|
|
|
|
|--------|----|----|----|--------|
|
|
|
|param|int|1|颜色ID|是
|
|
|
---------------------
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"colorCode": "cc",
|
|
|
"colorName": "hongse",
|
|
|
"colorValue": "cc-value",
|
|
|
"id": 16
|
|
|
},
|
|
|
"md5": "d08f272cd425a5a89528299e5ab9ebdf",
|
|
|
"message": "success"
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
...
|
...
|
|