Toggle navigation
Toggle navigation
This project
Loading...
Sign in
michaelcao
/
yohobuy-doc
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
lingmin
9 years ago
Commit
87a1a94c0f4296756797aee4e5f445a09953436f
1 parent
44962cfe
master
product
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1269 additions
and
1269 deletions
inferface-document/product-color.md → inferface-document/product/product-color.md
inferface-document/product-sort-attribute.md → inferface-document/product/product-sort-attribute.md
inferface-document/product.md → inferface-document/product/product.md
inferface-document/productPrice.md → inferface-document/product/productPrice.md
inferface-document/productSort.md → inferface-document/product/productSort.md
inferface-document/product-color.md → inferface-document/product
/product
-color.md
View file @
87a1a94
# 产品颜色管理接口服务定义
---------------------
# 添加颜色接口
> 接口名: `/productColor/addProductColor/`
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
|colorName|string|X色|颜色名称|是|
|colorCode|string|FFFF|RGB code|是|
|colorValue|string|www.io.png|图片URL|是|
---------------------
### 返回
```
json
{
"code"
:
200
,
"message"
:
"success"
}
```
# 获取颜色列表
> 接口名: `/productColor/queryProductColors`
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|
|-------|----|----|----|-------|
--------------------------------
### 返回
```
json
{
"code"
:
200
,
"data"
:{
"list"
:[
{
"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
}
]
"page"
:
0
,
-第几页
"size"
:
0
,
-单页记录数
"total"
:
437
,
--总数
"totalPage"
:
1
--总页数
},
"md5"
:
"a05b6b224e8d517720865f0060b484ad"
,
"message"
:
"success"
}
```
# 更新产品颜色接口
> 接口名: `/productColor/updateProductColor`
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
|id |int|1 |id |是 |
|colorName|string|X色|颜色名称|是|
|colorCode|string|000fff|RGB code|是|
|colorValue|string|www.meili.png|图片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"
}
```
# 产品颜色管理接口服务定义
---------------------
# 添加颜色接口
> 接口名: `/productColor/addProductColor/`
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
|colorName|string|X色|颜色名称|是|
|colorCode|string|FFFF|RGB code|是|
|colorValue|string|www.io.png|图片URL|是|
---------------------
### 返回
```
json
{
"code"
:
200
,
"message"
:
"success"
}
```
# 获取颜色列表
> 接口名: `/productColor/queryProductColors`
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|
|-------|----|----|----|-------|
--------------------------------
### 返回
```
json
{
"code"
:
200
,
"data"
:{
"list"
:[
{
"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
}
]
"page"
:
0
,
-第几页
"size"
:
0
,
-单页记录数
"total"
:
437
,
--总数
"totalPage"
:
1
--总页数
},
"md5"
:
"a05b6b224e8d517720865f0060b484ad"
,
"message"
:
"success"
}
```
# 更新产品颜色接口
> 接口名: `/productColor/updateProductColor`
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
|id |int|1 |id |是 |
|colorName|string|X色|颜色名称|是|
|colorCode|string|000fff|RGB code|是|
|colorValue|string|www.meili.png|图片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"
}
```
...
...
inferface-document/product-sort-attribute.md → inferface-document/product
/product
-sort-attribute.md
View file @
87a1a94
# 品类关联尺码属性管理接口服务定义
---------------------
# 添加品类关联尺码属性接口
> 接口名: `/sortAttribute/add/`
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
|sortId |int|1 |品类id |是 |
|attributeId|int|2|尺码属性id|是|
|orderBy|int|2|排序|否|
---------------------
### 返回
```
json
{
"code"
:
200
,
"message"
:
"success"
}
```
# 获取品类关联尺码属性列表
> 接口名: `sortAttribute/queryList/`
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|
|-------|----|----|----|-------|
|sortId |int|1 |品类id |是 |
|page|int|2|页码,默认1|是|
|size|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"
}
```
# 品类关联尺码属性管理接口服务定义
---------------------
# 添加品类关联尺码属性接口
> 接口名: `/sortAttribute/add/`
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
|sortId |int|1 |品类id |是 |
|attributeId|int|2|尺码属性id|是|
|orderBy|int|2|排序|否|
---------------------
### 返回
```
json
{
"code"
:
200
,
"message"
:
"success"
}
```
# 获取品类关联尺码属性列表
> 接口名: `sortAttribute/queryList/`
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|
|-------|----|----|----|-------|
|sortId |int|1 |品类id |是 |
|page|int|2|页码,默认1|是|
|size|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"
}
```
...
...
inferface-document/product.md → inferface-document/product
/product
.md
View file @
87a1a94
# 产品管理接口服务定义
---------------------
# 添加(更新)品类接口
> 接口名: `/product/update`
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
|categoryName|string|nike|品类名称|是|
|categoryAbbr|string|n|品类缩写|是|
|firstCategory|string|根目录|一级分类|否|
|secondCategory|string|根目录|二级分类|否|
|thirdCategory|string|根目录|三级分类|否|
|categorySort|number|0|排序|否|
|categoryStatus|boolean|true|状态|否|
|id|int|1|品类ID|
---------------------
### 返回
```
json
{
"code"
:
200
,
"message"
:
"添加成功!"
}
```
# 获取品类列表
> 接口名: `/product/getClassList`
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|
|-------|----|----|----|-------|
--------------------------------
### 返回
```
json
{
code:200,
message:
""
,
data
:
{
list:
[{
categoryName:
'',
//品类名称
categoryAbbr:
'',
//品类缩写
firstCategory:
'',
//一级分类
secondCategory:
'',
//二级分类
thirdCategory:
'',
//三级分类
categorySort:
'',
//排序
categoryStatus:
'',//状态,
id:
'',
//品类ID
}
]
page:
''
,
//当前第几页
size
:
''
,
//每页多少条
}
}
```
# 添加产品属性接口
> 接口名: `/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`
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
|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|展示位置|是
---------------------
### 返回
```
json
{
"code"
:
200
,
"data"
:
[],
"md5"
:
"d751713988987e9331980363e24189ce"
,
"message"
:
"Product Attribute update success."
}
```
# 获取产品属性列表接口
> 接口名: `/product/queryProductAttributeList`
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
|categoryId|int|1|目录ID|是
|page|int|1|当前第几页|否
|size|int|1|每页多少条|否
---------------------
### 返回
```
json
{
"code"
:
200
,
"data"
:
"list"
:
[
{
"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`
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
|attributeId|int|1|属性ID|是
---------------------
### 返回
```
json
{
"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
},
"md5"
:
"dfc645ecb0c66c8d4771dd2a749047e8"
,
"message"
:
"Product Attribute get success."
}
```
# 获取产品列表
> 接口名: `/product/getList`
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
| | | | | |
---------------------
### 返回
```
json
{
code:200,
message:
""
,
data
:
{
list:
[{
//...
}
]
page:
''
,
//当前第几页
size
:
''
,
//每页多少条
}
}
# 产品管理接口服务定义
---------------------
# 添加(更新)品类接口
> 接口名: `/product/update`
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
|categoryName|string|nike|品类名称|是|
|categoryAbbr|string|n|品类缩写|是|
|firstCategory|string|根目录|一级分类|否|
|secondCategory|string|根目录|二级分类|否|
|thirdCategory|string|根目录|三级分类|否|
|categorySort|number|0|排序|否|
|categoryStatus|boolean|true|状态|否|
|id|int|1|品类ID|
---------------------
### 返回
```
json
{
"code"
:
200
,
"message"
:
"添加成功!"
}
```
# 获取品类列表
> 接口名: `/product/getClassList`
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|
|-------|----|----|----|-------|
--------------------------------
### 返回
```
json
{
code:200,
message:
""
,
data
:
{
list:
[{
categoryName:
'',
//品类名称
categoryAbbr:
'',
//品类缩写
firstCategory:
'',
//一级分类
secondCategory:
'',
//二级分类
thirdCategory:
'',
//三级分类
categorySort:
'',
//排序
categoryStatus:
'',//状态,
id:
'',
//品类ID
}
]
page:
''
,
//当前第几页
size
:
''
,
//每页多少条
}
}
```
# 添加产品属性接口
> 接口名: `/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`
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
|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|展示位置|是
---------------------
### 返回
```
json
{
"code"
:
200
,
"data"
:
[],
"md5"
:
"d751713988987e9331980363e24189ce"
,
"message"
:
"Product Attribute update success."
}
```
# 获取产品属性列表接口
> 接口名: `/product/queryProductAttributeList`
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
|categoryId|int|1|目录ID|是
|page|int|1|当前第几页|否
|size|int|1|每页多少条|否
---------------------
### 返回
```
json
{
"code"
:
200
,
"data"
:
"list"
:
[
{
"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`
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
|attributeId|int|1|属性ID|是
---------------------
### 返回
```
json
{
"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
},
"md5"
:
"dfc645ecb0c66c8d4771dd2a749047e8"
,
"message"
:
"Product Attribute get success."
}
```
# 获取产品列表
> 接口名: `/product/getList`
-------------------------
|属性名称|类型|例子|说明|是否必填|
|--------|----|----|----|--------|
| | | | | |
---------------------
### 返回
```
json
{
code:200,
message:
""
,
data
:
{
list:
[{
//...
}
]
page:
''
,
//当前第几页
size
:
''
,
//每页多少条
}
}
```
\ No newline at end of file
...
...
inferface-document/productPrice.md → inferface-document/product
/product
Price.md
View file @
87a1a94
## 查询价格列表接口
> 接口名: '/product/queryProductPriceList'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|product_skn|Number|60000050|商品的skn|
|shop_id|Number|43|店铺Id|
|brand_id|Number|43|品牌id|
|supplier_id|Number|43|供应商Id|
|is_jit|String|"N"|是否是代销不入库 Y 或者 N|
|is_auditing|Number|200|商品状态|
|stock|Number|1|有库存为1 无填写 0|
|gender|Number|1|性别 1代表男性,2代表女性 3代表通用|
|max_sort_id|Number|1|大分类的Id|
|middle_sort_id|Number|12|中分类Id|
|small_sort_id|Number|111|小分类的Id|
|page|Number|1|当前页数 从1开始|
|size|Number|10|每页显示条数,默认10|
---------------------
### 返回(备注: ("1", "男")("2", "女")("3", "通用")
```
json
{
"code"
:
200
,
"data"
:
{
"list"
:
[
{
"brand_id"
:
175
,
"brand_name"
:
"品牌名称"
,
"founder"
:
9278
,
"max_sort_id"
:
10
,
"max_sort_name"
:
"创意生活"
,
"middle_sort_id"
:
101
,
"middle_sort_name"
:
"文具"
,
"product_name"
:
"团一复古花纹满本图案牛皮纸笔记本"
,
"product_pic_url"
:
"http://img12.static.yhbimg.com/goodsimg/2011/06/24/13/02e571a64cea3ea8e734f8f0aae790fb4f.jpg?imageView/0/w/60/h/60"
,
"product_skn"
:
50000055
,
"retail_price"
:
29
,
"return_coin"
:
300
,
"sales_price"
:
29
,
"small_sort_id"
:
111
,
"small_sort_name"
:
"本子"
,
"supplier_id"
:
0
,
"supplier_name"
:
"供应商名称"
,
"updateTime"
:
"2016-02-02 10:37:43"
,
"vip1_price"
:
0
,
"vip2_price"
:
0
,
"vip3_price"
:
0
,
"vip_discount_type"
:
1
,
"vip_price"
:
0
,
"shop_id"
:
1
,
"shop_name"
:
"店铺名称"
,
"gender"
:
"1"
,
"founderName"
:
"操作人姓名"
},
{
"brand_id"
:
187
,
"brand_name"
:
"顽"
,
"founder"
:
9278
,
"max_sort_id"
:
8
,
"max_sort_name"
:
"服配"
,
"middle_sort_id"
:
66
,
"middle_sort_name"
:
"配饰"
,
"product_name"
:
"PLAY顽植物大战僵尸坚果墙挂饰"
,
"product_pic_url"
:
"http://img10.static.yhbimg.com/goodsimg/2011/06/23/05/01bda4fc443c96aa3a2e9287c3c17be87a.jpg?imageView/0/w/60/h/60"
,
"product_skn"
:
50000056
,
"retail_price"
:
18
,
"return_coin"
:
0
,
"sales_price"
:
18
,
"small_sort_id"
:
305
,
"small_sort_name"
:
"挂饰"
,
"supplier_id"
:
0
,
"supplier_name"
:
"供应商名称"
,
"updateTime"
:
"2016-02-02 10:37:43"
,
"vip1_price"
:
0
,
"vip2_price"
:
0
,
"vip3_price"
:
0
,
"vip_discount_type"
:
1
,
"vip_price"
:
0
,
"shop_id"
:
1
,
"shop_name"
:
"店铺名称"
,
"gender"
:
"1"
,
"founderName"
:
"操作人姓名"
}
],
"page"
:
1
,
"size"
:
2
,
"total"
:
2
,
"totalPage"
:
1
},
"md5"
:
"9a92b3c94d9676a8089169ee46ebce4a"
,
"message"
:
"Product Price List."
}
```
## 查询所有的店铺信息
> 接口名: '/ShopsRest/queryAllShops'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
---------------------
### 返回
```
json
{
"code"
:
200
,
"data"
:
[
{
"checkStatus"
:
0
,
"shopName"
:
"得宝旗舰店"
,
"shopsId"
:
15
,
"status"
:
0
},
{
"checkStatus"
:
0
,
"shopName"
:
":CHOCOOLATEQ"
,
"shopsId"
:
16
,
"status"
:
0
}
],
"message"
:
"操作成功"
}
```
## 查询所有的品牌列表
> 接口名: '/erpproduct/brands/queryAllBrands'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
---------------------
### 返回
```
json
{
"code"
:
200
,
"data"
:
[
{
"brandDomain"
:
"lily"
,
"brandName"
:
"lily"
,
"brandNameEn"
:
"lily"
,
"id"
:
1431
,
"status"
:
1
},
{
"brandDomain"
:
"test"
,
"brandName"
:
"test"
,
"brandNameCn"
:
""
,
"brandNameEn"
:
"test"
,
"id"
:
1430
,
"status"
:
1
}
],
"md5"
:
"03098c8c158c8405117daadb91ed792a"
,
"message"
:
"Product Brand List."
}
```
## 查询所有的供应商列表信息
> 接口名: '/supplier/supplier/queryAllSupplier'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
---------------------
### 返回
```
json
{
"code"
:
200
,
"data"
:
[
{
"brandId"
:
0
,
"supplierId"
:
1
,
"supplierName"
:
"10*1"
},
{
"brandId"
:
0
,
"supplierId"
:
2
,
"supplierName"
:
"广派商业(上海)有限公司"
},
{
"brandId"
:
0
,
"supplierId"
:
3
,
"supplierName"
:
"广州市海珠区艺柏时装经营部"
}
],
"message"
:
"操作成功"
}
```
## 查询商品是否是JIT配置
> 接口名: '/product/queryJitConfigList'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
---------------------
### 返回
```
json
{
"code"
:
200
,
"data"
:
{
"N"
:
"非JIT"
,
"Y"
:
"是JIT"
},
"md5"
:
"47b9033a2b45f1f51739d7c8ca2b2e29"
,
"message"
:
"Jit Config List."
}
```
## 查询商品是否是JIT配置
> 接口名: '/product/queryProductStatusConfigList'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
---------------------
### 返回
```
json
{
"code"
:
200
,
"data"
:
{
"0"
:
"下架"
,
"200"
:
"上架"
},
"md5"
:
"3e1f4e393d82140086f3b11342196cb6"
,
"message"
:
"Status Config List."
}
```
## 查询商品库存情况的配置
> 接口名: '/product/queryProductStockConfigList'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
---------------------
### 返回
```
json
{
"code"
:
200
,
"data"
:
{
"0"
:
"无库存"
,
"1"
:
"有库存"
},
"md5"
:
"b5fdee6640106a6eff445b8181a7e96b"
,
"message"
:
"Stock Config List."
}
```
## 查询商品所属 性别分类信息
> 接口名: '/product/queryGenderConfigList'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
---------------------
### 返回
```
json
{
"code"
:
200
,
"data"
:
{
"1"
:
"男"
,
"2"
:
"女"
,
"3"
:
"通用"
},
"md5"
:
"454312b4aadbcd602078c175631f20ea"
,
"message"
:
"Gender Config List."
}
```
## 查询所有的一级分类列表
> 接口名: '/product/queryAllMaxSortList'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
---------------------
### 返回(备注: id 和 sortName 有用)
```
json
{
"code"
:
200
,
"data"
:
[
{
"booleanStatus"
:
true
,
"createTime"
:
0
,
"gender"
:
3
,
"id"
:
365
,
"isHot"
:
"N"
,
"orderBy"
:
0
,
"parentId"
:
0
,
"sortCode"
:
"365,0,0"
,
"sortInitials"
:
"潮童"
,
"sortLevel"
:
1
,
"sortName"
:
"潮童"
,
"status"
:
1
,
"updateTime"
:
1454060643
},
{
"booleanStatus"
:
false
,
"createTime"
:
0
,
"gender"
:
3
,
"id"
:
241
,
"isHot"
:
"N"
,
"orderBy"
:
0
,
"parentId"
:
0
,
"sortCode"
:
"241,0,0"
,
"sortInitials"
:
"数码周边"
,
"sortLevel"
:
1
,
"sortName"
:
"数码周边"
,
"status"
:
0
,
"updateTime"
:
0
}
],
"md5"
:
"dc2b4caace98d678cf688edcdd204675"
,
"message"
:
"Product Sort List."
}
```
## 根据skn获取价格信息
> 接口名: '/product/getProductPrice'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|param|number|5000060|商品的Skn|
---------------------
### 返回 (备注 : costPrice 成本价 purchasePrice 进货价 purchaseDiscount 进货折扣 )
```
json
{
"code"
:
200
,
"data"
:
{
"cost_price"
:
0
,
"founder"
:
9278
,
"product_skn"
:
50000063
,
"purchase_discount"
:
0
,
"purchase_price"
:
0
,
"retail_price"
:
50
,
"return_coin"
:
9999
,
"sales_price"
:
211.22
,
"updateTime"
:
"2016-02-03 13:33:15"
,
"vip1_price"
:
200.66
,
"vip2_price"
:
190.1
,
"vip3_price"
:
185.87
,
"vip_discount_type"
:
1
,
"vip_price"
:
9999
},
"md5"
:
"cfb9c7b74370346f4bd55fabb7f1deae"
,
"message"
:
"Product Price get success."
}
```
## 单个商品变价
> 接口名: '/product/updateProductPrice'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|product_skn|number|5000060|商品的Skn|
|sales_price|float|22.22|销售价格|
|vip_discount_type|number|5000060|商品的Skn|
|founder|number|2262|操作人标识|
|return_coin|number|200|返回币数|
|vip_price|float|22.33|vip价格 vipDiscountType 为4时必填|
|vip1_price|float|22.33|折扣类型为5时必填|
|vip2_price|float|22.33|折扣类型为5时必填|
|vip3_price|float|22.33|折扣类型为5时必填|
---------------------
### 返回 (备注 :code 为200代表成功 )
```
json
{
"code"
:
200
,
"data"
:
[],
"md5"
:
"d751713988987e9331980363e24189ce"
,
"message"
:
"Product Price update success."
}
```
## 批量商品变价
> 接口名: '/product/batchUpdateProductPrice'
### 入参 例子:[{"product_skn": 50000060, "sales_price" :211.22, "vip_discount_type":1, "founder":9278, "return_coin":88, "vip_price":99},
{"product_skn": 50000063, "sales_price" :211.22, "vip_discount_type":1, "founder":9278, "return_coin":88, "vip_price":99}]
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|product_skn|number|5000060|商品的Skn|
|sales_price|float|22.22|销售价格|
|vip_discount_type|number|5000060|商品的Skn|
|founder|number|2262|操作人标识|
|return_coin|number|200|返回币数|
|vip_price|float|22.33|vip价格 vipDiscountType 为4时必填|
|vip1_price|float|22.33|折扣类型为5时必填|
|vip2_price|float|22.33|折扣类型为5时必填|
|vip3_price|float|22.33|折扣类型为5时必填|
---------------------
### 返回 (备注 :code 为200代表成功 , data表示成功记录的表格所处相对路径)
```
json
{
"code"
:
200
,
"data"
:
"1455604702941.xlsx"
,
"md5"
:
"d751713988987e9331980363e24189ce"
,
"message"
:
"Product Price update success."
}
```
## 下载文件
> 接口名: '/batch/download?path= ***'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|path|字符串|文件链接|必填|
---------------------
### 返回
```
文件流
```
## 批量上传变价文本
> 接口名: '/batch/import'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|file|文件|文件流|必填|
|type|字符串|price|必填|
---------------------
### 返回 (备注:failFileReason 是失败的原因, succesList成功的列表 newProductPriceBo代表表格中的新数据 oldProductPriceBo代表数据库中的旧记录 )
```
{
"code"
:
200
,
"data"
:
{
"failFileReason"
:
[
"第2行:对应的skn不存在数据库中;"
,
"第3行:非代销商品;"
,
"第5行:固定折扣,填写VIP价;"
,
"第7行:固定折扣,填写VIP价;"
,
"第9行:固定折扣,填写VIP价;"
,
"第10行:固定折扣,填写VIP价;"
,
"第11行:固定折扣,填写VIP价;"
,
"第12行:固定折扣,填写VIP价;"
],
"succesList"
:
[
{
"newProductPriceBo"
:
{
"product_skn"
:
50000082
,
"retail_price"
:
298
,
"return_coin"
:
1111
,
"sales_price"
:
22
,
"vip_discount_type"
:
4
,
"vip_price"
:
260
},
"oldProductPriceBo"
:
{
"product_skn"
:
50000082
,
"retail_price"
:
298
,
"return_coin"
:
0
,
"sales_price"
:
149
,
"vip1_price"
:
0
,
"vip2_price"
:
0
,
"vip3_price"
:
0
,
"vip_discount_type"
:
3
,
"vip_price"
:
0
}
},
{
"newProductPriceBo"
:
{
"product_skn"
:
50000082
,
"retail_price"
:
298
,
"return_coin"
:
1111
,
"sales_price"
:
22
,
"vip_discount_type"
:
4
,
"vip_price"
:
260
},
"oldProductPriceBo"
:
{
"product_skn"
:
50000082
,
"retail_price"
:
298
,
"return_coin"
:
0
,
"sales_price"
:
149
,
"vip1_price"
:
0
,
"vip2_price"
:
0
,
"vip3_price"
:
0
,
"vip_discount_type"
:
3
,
"vip_price"
:
0
}
},
{
"newProductPriceBo"
:
{
"product_skn"
:
50000082
,
"retail_price"
:
298
,
"return_coin"
:
1111
,
"sales_price"
:
22
,
"vip_discount_type"
:
4
,
"vip_price"
:
260
},
"oldProductPriceBo"
:
{
"product_skn"
:
50000082
,
"retail_price"
:
298
,
"return_coin"
:
0
,
"sales_price"
:
149
,
"vip1_price"
:
0
,
"vip2_price"
:
0
,
"vip3_price"
:
0
,
"vip_discount_type"
:
3
,
"vip_price"
:
0
}
},
{
"newProductPriceBo"
:
{
"product_skn"
:
50000082
,
"retail_price"
:
298
,
"return_coin"
:
1111
,
"sales_price"
:
22
,
"vip_discount_type"
:
4
,
"vip_price"
:
260
},
"oldProductPriceBo"
:
{
"product_skn"
:
50000082
,
"retail_price"
:
298
,
"return_coin"
:
0
,
"sales_price"
:
149
,
"vip1_price"
:
0
,
"vip2_price"
:
0
,
"vip3_price"
:
0
,
"vip_discount_type"
:
3
,
"vip_price"
:
0
}
}
]
},
"message"
:
"导入成功"
}
## 查询价格列表接口
> 接口名: '/product/queryProductPriceList'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|product_skn|Number|60000050|商品的skn|
|shop_id|Number|43|店铺Id|
|brand_id|Number|43|品牌id|
|supplier_id|Number|43|供应商Id|
|is_jit|String|"N"|是否是代销不入库 Y 或者 N|
|is_auditing|Number|200|商品状态|
|stock|Number|1|有库存为1 无填写 0|
|gender|Number|1|性别 1代表男性,2代表女性 3代表通用|
|max_sort_id|Number|1|大分类的Id|
|middle_sort_id|Number|12|中分类Id|
|small_sort_id|Number|111|小分类的Id|
|page|Number|1|当前页数 从1开始|
|size|Number|10|每页显示条数,默认10|
---------------------
### 返回(备注: ("1", "男")("2", "女")("3", "通用")
```
json
{
"code"
:
200
,
"data"
:
{
"list"
:
[
{
"brand_id"
:
175
,
"brand_name"
:
"品牌名称"
,
"founder"
:
9278
,
"max_sort_id"
:
10
,
"max_sort_name"
:
"创意生活"
,
"middle_sort_id"
:
101
,
"middle_sort_name"
:
"文具"
,
"product_name"
:
"团一复古花纹满本图案牛皮纸笔记本"
,
"product_pic_url"
:
"http://img12.static.yhbimg.com/goodsimg/2011/06/24/13/02e571a64cea3ea8e734f8f0aae790fb4f.jpg?imageView/0/w/60/h/60"
,
"product_skn"
:
50000055
,
"retail_price"
:
29
,
"return_coin"
:
300
,
"sales_price"
:
29
,
"small_sort_id"
:
111
,
"small_sort_name"
:
"本子"
,
"supplier_id"
:
0
,
"supplier_name"
:
"供应商名称"
,
"updateTime"
:
"2016-02-02 10:37:43"
,
"vip1_price"
:
0
,
"vip2_price"
:
0
,
"vip3_price"
:
0
,
"vip_discount_type"
:
1
,
"vip_price"
:
0
,
"shop_id"
:
1
,
"shop_name"
:
"店铺名称"
,
"gender"
:
"1"
,
"founderName"
:
"操作人姓名"
},
{
"brand_id"
:
187
,
"brand_name"
:
"顽"
,
"founder"
:
9278
,
"max_sort_id"
:
8
,
"max_sort_name"
:
"服配"
,
"middle_sort_id"
:
66
,
"middle_sort_name"
:
"配饰"
,
"product_name"
:
"PLAY顽植物大战僵尸坚果墙挂饰"
,
"product_pic_url"
:
"http://img10.static.yhbimg.com/goodsimg/2011/06/23/05/01bda4fc443c96aa3a2e9287c3c17be87a.jpg?imageView/0/w/60/h/60"
,
"product_skn"
:
50000056
,
"retail_price"
:
18
,
"return_coin"
:
0
,
"sales_price"
:
18
,
"small_sort_id"
:
305
,
"small_sort_name"
:
"挂饰"
,
"supplier_id"
:
0
,
"supplier_name"
:
"供应商名称"
,
"updateTime"
:
"2016-02-02 10:37:43"
,
"vip1_price"
:
0
,
"vip2_price"
:
0
,
"vip3_price"
:
0
,
"vip_discount_type"
:
1
,
"vip_price"
:
0
,
"shop_id"
:
1
,
"shop_name"
:
"店铺名称"
,
"gender"
:
"1"
,
"founderName"
:
"操作人姓名"
}
],
"page"
:
1
,
"size"
:
2
,
"total"
:
2
,
"totalPage"
:
1
},
"md5"
:
"9a92b3c94d9676a8089169ee46ebce4a"
,
"message"
:
"Product Price List."
}
```
## 查询所有的店铺信息
> 接口名: '/ShopsRest/queryAllShops'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
---------------------
### 返回
```
json
{
"code"
:
200
,
"data"
:
[
{
"checkStatus"
:
0
,
"shopName"
:
"得宝旗舰店"
,
"shopsId"
:
15
,
"status"
:
0
},
{
"checkStatus"
:
0
,
"shopName"
:
":CHOCOOLATEQ"
,
"shopsId"
:
16
,
"status"
:
0
}
],
"message"
:
"操作成功"
}
```
## 查询所有的品牌列表
> 接口名: '/erpproduct/brands/queryAllBrands'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
---------------------
### 返回
```
json
{
"code"
:
200
,
"data"
:
[
{
"brandDomain"
:
"lily"
,
"brandName"
:
"lily"
,
"brandNameEn"
:
"lily"
,
"id"
:
1431
,
"status"
:
1
},
{
"brandDomain"
:
"test"
,
"brandName"
:
"test"
,
"brandNameCn"
:
""
,
"brandNameEn"
:
"test"
,
"id"
:
1430
,
"status"
:
1
}
],
"md5"
:
"03098c8c158c8405117daadb91ed792a"
,
"message"
:
"Product Brand List."
}
```
## 查询所有的供应商列表信息
> 接口名: '/supplier/supplier/queryAllSupplier'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
---------------------
### 返回
```
json
{
"code"
:
200
,
"data"
:
[
{
"brandId"
:
0
,
"supplierId"
:
1
,
"supplierName"
:
"10*1"
},
{
"brandId"
:
0
,
"supplierId"
:
2
,
"supplierName"
:
"广派商业(上海)有限公司"
},
{
"brandId"
:
0
,
"supplierId"
:
3
,
"supplierName"
:
"广州市海珠区艺柏时装经营部"
}
],
"message"
:
"操作成功"
}
```
## 查询商品是否是JIT配置
> 接口名: '/product/queryJitConfigList'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
---------------------
### 返回
```
json
{
"code"
:
200
,
"data"
:
{
"N"
:
"非JIT"
,
"Y"
:
"是JIT"
},
"md5"
:
"47b9033a2b45f1f51739d7c8ca2b2e29"
,
"message"
:
"Jit Config List."
}
```
## 查询商品是否是JIT配置
> 接口名: '/product/queryProductStatusConfigList'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
---------------------
### 返回
```
json
{
"code"
:
200
,
"data"
:
{
"0"
:
"下架"
,
"200"
:
"上架"
},
"md5"
:
"3e1f4e393d82140086f3b11342196cb6"
,
"message"
:
"Status Config List."
}
```
## 查询商品库存情况的配置
> 接口名: '/product/queryProductStockConfigList'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
---------------------
### 返回
```
json
{
"code"
:
200
,
"data"
:
{
"0"
:
"无库存"
,
"1"
:
"有库存"
},
"md5"
:
"b5fdee6640106a6eff445b8181a7e96b"
,
"message"
:
"Stock Config List."
}
```
## 查询商品所属 性别分类信息
> 接口名: '/product/queryGenderConfigList'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
---------------------
### 返回
```
json
{
"code"
:
200
,
"data"
:
{
"1"
:
"男"
,
"2"
:
"女"
,
"3"
:
"通用"
},
"md5"
:
"454312b4aadbcd602078c175631f20ea"
,
"message"
:
"Gender Config List."
}
```
## 查询所有的一级分类列表
> 接口名: '/product/queryAllMaxSortList'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
---------------------
### 返回(备注: id 和 sortName 有用)
```
json
{
"code"
:
200
,
"data"
:
[
{
"booleanStatus"
:
true
,
"createTime"
:
0
,
"gender"
:
3
,
"id"
:
365
,
"isHot"
:
"N"
,
"orderBy"
:
0
,
"parentId"
:
0
,
"sortCode"
:
"365,0,0"
,
"sortInitials"
:
"潮童"
,
"sortLevel"
:
1
,
"sortName"
:
"潮童"
,
"status"
:
1
,
"updateTime"
:
1454060643
},
{
"booleanStatus"
:
false
,
"createTime"
:
0
,
"gender"
:
3
,
"id"
:
241
,
"isHot"
:
"N"
,
"orderBy"
:
0
,
"parentId"
:
0
,
"sortCode"
:
"241,0,0"
,
"sortInitials"
:
"数码周边"
,
"sortLevel"
:
1
,
"sortName"
:
"数码周边"
,
"status"
:
0
,
"updateTime"
:
0
}
],
"md5"
:
"dc2b4caace98d678cf688edcdd204675"
,
"message"
:
"Product Sort List."
}
```
## 根据skn获取价格信息
> 接口名: '/product/getProductPrice'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|param|number|5000060|商品的Skn|
---------------------
### 返回 (备注 : costPrice 成本价 purchasePrice 进货价 purchaseDiscount 进货折扣 )
```
json
{
"code"
:
200
,
"data"
:
{
"cost_price"
:
0
,
"founder"
:
9278
,
"product_skn"
:
50000063
,
"purchase_discount"
:
0
,
"purchase_price"
:
0
,
"retail_price"
:
50
,
"return_coin"
:
9999
,
"sales_price"
:
211.22
,
"updateTime"
:
"2016-02-03 13:33:15"
,
"vip1_price"
:
200.66
,
"vip2_price"
:
190.1
,
"vip3_price"
:
185.87
,
"vip_discount_type"
:
1
,
"vip_price"
:
9999
},
"md5"
:
"cfb9c7b74370346f4bd55fabb7f1deae"
,
"message"
:
"Product Price get success."
}
```
## 单个商品变价
> 接口名: '/product/updateProductPrice'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|product_skn|number|5000060|商品的Skn|
|sales_price|float|22.22|销售价格|
|vip_discount_type|number|5000060|商品的Skn|
|founder|number|2262|操作人标识|
|return_coin|number|200|返回币数|
|vip_price|float|22.33|vip价格 vipDiscountType 为4时必填|
|vip1_price|float|22.33|折扣类型为5时必填|
|vip2_price|float|22.33|折扣类型为5时必填|
|vip3_price|float|22.33|折扣类型为5时必填|
---------------------
### 返回 (备注 :code 为200代表成功 )
```
json
{
"code"
:
200
,
"data"
:
[],
"md5"
:
"d751713988987e9331980363e24189ce"
,
"message"
:
"Product Price update success."
}
```
## 批量商品变价
> 接口名: '/product/batchUpdateProductPrice'
### 入参 例子:[{"product_skn": 50000060, "sales_price" :211.22, "vip_discount_type":1, "founder":9278, "return_coin":88, "vip_price":99},
{"product_skn": 50000063, "sales_price" :211.22, "vip_discount_type":1, "founder":9278, "return_coin":88, "vip_price":99}]
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|product_skn|number|5000060|商品的Skn|
|sales_price|float|22.22|销售价格|
|vip_discount_type|number|5000060|商品的Skn|
|founder|number|2262|操作人标识|
|return_coin|number|200|返回币数|
|vip_price|float|22.33|vip价格 vipDiscountType 为4时必填|
|vip1_price|float|22.33|折扣类型为5时必填|
|vip2_price|float|22.33|折扣类型为5时必填|
|vip3_price|float|22.33|折扣类型为5时必填|
---------------------
### 返回 (备注 :code 为200代表成功 , data表示成功记录的表格所处相对路径)
```
json
{
"code"
:
200
,
"data"
:
"1455604702941.xlsx"
,
"md5"
:
"d751713988987e9331980363e24189ce"
,
"message"
:
"Product Price update success."
}
```
## 下载文件
> 接口名: '/batch/download?path= ***'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|path|字符串|文件链接|必填|
---------------------
### 返回
```
文件流
```
## 批量上传变价文本
> 接口名: '/batch/import'
### 入参
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|file|文件|文件流|必填|
|type|字符串|price|必填|
---------------------
### 返回 (备注:failFileReason 是失败的原因, succesList成功的列表 newProductPriceBo代表表格中的新数据 oldProductPriceBo代表数据库中的旧记录 )
```
{
"code"
:
200
,
"data"
:
{
"failFileReason"
:
[
"第2行:对应的skn不存在数据库中;"
,
"第3行:非代销商品;"
,
"第5行:固定折扣,填写VIP价;"
,
"第7行:固定折扣,填写VIP价;"
,
"第9行:固定折扣,填写VIP价;"
,
"第10行:固定折扣,填写VIP价;"
,
"第11行:固定折扣,填写VIP价;"
,
"第12行:固定折扣,填写VIP价;"
],
"succesList"
:
[
{
"newProductPriceBo"
:
{
"product_skn"
:
50000082
,
"retail_price"
:
298
,
"return_coin"
:
1111
,
"sales_price"
:
22
,
"vip_discount_type"
:
4
,
"vip_price"
:
260
},
"oldProductPriceBo"
:
{
"product_skn"
:
50000082
,
"retail_price"
:
298
,
"return_coin"
:
0
,
"sales_price"
:
149
,
"vip1_price"
:
0
,
"vip2_price"
:
0
,
"vip3_price"
:
0
,
"vip_discount_type"
:
3
,
"vip_price"
:
0
}
},
{
"newProductPriceBo"
:
{
"product_skn"
:
50000082
,
"retail_price"
:
298
,
"return_coin"
:
1111
,
"sales_price"
:
22
,
"vip_discount_type"
:
4
,
"vip_price"
:
260
},
"oldProductPriceBo"
:
{
"product_skn"
:
50000082
,
"retail_price"
:
298
,
"return_coin"
:
0
,
"sales_price"
:
149
,
"vip1_price"
:
0
,
"vip2_price"
:
0
,
"vip3_price"
:
0
,
"vip_discount_type"
:
3
,
"vip_price"
:
0
}
},
{
"newProductPriceBo"
:
{
"product_skn"
:
50000082
,
"retail_price"
:
298
,
"return_coin"
:
1111
,
"sales_price"
:
22
,
"vip_discount_type"
:
4
,
"vip_price"
:
260
},
"oldProductPriceBo"
:
{
"product_skn"
:
50000082
,
"retail_price"
:
298
,
"return_coin"
:
0
,
"sales_price"
:
149
,
"vip1_price"
:
0
,
"vip2_price"
:
0
,
"vip3_price"
:
0
,
"vip_discount_type"
:
3
,
"vip_price"
:
0
}
},
{
"newProductPriceBo"
:
{
"product_skn"
:
50000082
,
"retail_price"
:
298
,
"return_coin"
:
1111
,
"sales_price"
:
22
,
"vip_discount_type"
:
4
,
"vip_price"
:
260
},
"oldProductPriceBo"
:
{
"product_skn"
:
50000082
,
"retail_price"
:
298
,
"return_coin"
:
0
,
"sales_price"
:
149
,
"vip1_price"
:
0
,
"vip2_price"
:
0
,
"vip3_price"
:
0
,
"vip_discount_type"
:
3
,
"vip_price"
:
0
}
}
]
},
"message"
:
"导入成功"
}
```
\ No newline at end of file
...
...
inferface-document/productSort.md → inferface-document/product
/product
Sort.md
View file @
87a1a94
This diff could not be displayed because it is too large.
Please
register
or
login
to post a comment