Merge branch 'develop' of http://git.dev.yoho.cn/platform/yohobuy-doc into develop
Showing
4 changed files
with
546 additions
and
215 deletions
@@ -34,25 +34,7 @@ | @@ -34,25 +34,7 @@ | ||
34 | "platformName":"yohoApp", | 34 | "platformName":"yohoApp", |
35 | "code":"201504091403001", | 35 | "code":"201504091403001", |
36 | "matchCode":"", | 36 | "matchCode":"", |
37 | - "createTime":1430378310, | ||
38 | - "sorts":[ | ||
39 | - { | ||
40 | - "sortId":2, | ||
41 | - "sortName":"男首", | ||
42 | - "platformId":"1", | ||
43 | - "createTime":1430304722, | ||
44 | - "status":1 | ||
45 | - } | ||
46 | - ], | ||
47 | - "platforms":[ | ||
48 | - { | ||
49 | - "platformId":1, | ||
50 | - "platformName":"yohoApp", | ||
51 | - "platformFlag":"iphone", | ||
52 | - "createTime":1430300615, | ||
53 | - "status":1 | ||
54 | - } | ||
55 | - ] | 37 | + "createTime":1430378310 |
56 | } | 38 | } |
57 | ] | 39 | ] |
58 | } | 40 | } |
@@ -76,5 +58,60 @@ | @@ -76,5 +58,60 @@ | ||
76 | |code |资源码 | | 58 | |code |资源码 | |
77 | |matchCode |配对码 | | 59 | |matchCode |配对码 | |
78 | |createTime |创建时间 | | 60 | |createTime |创建时间 | |
79 | -|sorts |分类列表 | | ||
80 | -|platforms |平台列表 | | ||
61 | + | ||
62 | +### 查询所有的平台 | ||
63 | + | ||
64 | +> GET `/resources/platforms` | ||
65 | + | ||
66 | +#### 返回 | ||
67 | + | ||
68 | +``` json | ||
69 | +{ | ||
70 | + "code":200 | ||
71 | + "data":{ | ||
72 | + "platformId":1, | ||
73 | + "platformName":"yohoApp", | ||
74 | + "platformFlag":"iphone", | ||
75 | + "createTime":1430300615, | ||
76 | + "status":1 | ||
77 | + } | ||
78 | +} | ||
79 | + | ||
80 | +``` | ||
81 | +----------------------------- | ||
82 | +|参数名 |描述 | | ||
83 | +|------ |---- | | ||
84 | +|platformId |平台编号 | | ||
85 | +|platformName|平台名称 | | ||
86 | +|platformFlag|平台标识 | | ||
87 | +|createTime |创建时间 | | ||
88 | +|status |状态码 | | ||
89 | + | ||
90 | + | ||
91 | +### 查询所有的资源分类 | ||
92 | + | ||
93 | +> GET `/resources/sorts` | ||
94 | + | ||
95 | +#### 返回 | ||
96 | + | ||
97 | +``` json | ||
98 | +{ | ||
99 | + "code":200 | ||
100 | + "data":{ | ||
101 | + "sortId":2, | ||
102 | + "sortName":"男首", | ||
103 | + "platformId":1, | ||
104 | + "createTime":1430304722, | ||
105 | + "status":1 | ||
106 | + } | ||
107 | +} | ||
108 | + | ||
109 | +``` | ||
110 | +----------------------------- | ||
111 | +|参数名 |描述 | | ||
112 | +|------ |---- | | ||
113 | +|sortId |分类编号 | | ||
114 | +|sortName |分类名称 | | ||
115 | +|platformId |平台编号 | | ||
116 | +|createTime |创建时间 | | ||
117 | +|status |状态码 | |
1 | -# 产品颜色管理接口服务定义 | ||
2 | ---------------------- | ||
3 | - | ||
4 | -# 添加颜色接口 | ||
5 | - | ||
6 | -> 接口名: `/productColor/addProductColor/` | ||
7 | - | ||
8 | -### 入参 | ||
9 | - | ||
10 | -------------------------- | ||
11 | -|属性名称|类型|例子|说明|是否必填| | ||
12 | -|--------|----|----|----|--------| | ||
13 | -|colorName|string|nike|颜色名称|是| | ||
14 | -|colorCode|string|n|RGB code|是| | ||
15 | -|colorValue|string|图片URL|一级分类|是| | ||
16 | - | ||
17 | ---------------------- | ||
18 | - | ||
19 | -### 返回 | ||
20 | - | ||
21 | -``` json | ||
22 | -{ | ||
23 | - "code":200, | ||
24 | - "message":"success" | ||
25 | -} | ||
26 | - | ||
27 | -``` | ||
28 | - | ||
29 | -# 获取颜色列表 | ||
30 | - | ||
31 | -> 接口名: `/productColor/queryProductColors` | ||
32 | - | ||
33 | -### 入参 | ||
34 | - | ||
35 | -------------------------- | ||
36 | -|属性名称|类型|例子|说明|是否必填| | ||
37 | -|-------|----|----|----|-------| | ||
38 | --------------------------------- | ||
39 | - | ||
40 | -### 返回 | ||
41 | - | ||
42 | -``` json | ||
43 | -{ | ||
44 | - "code": 200, | ||
45 | - "data": [ | ||
46 | - { | ||
47 | - "colorCode": "FFFFFF", | ||
48 | - "colorName": "白色", | ||
49 | - "colorValue": "", | ||
50 | - "id": 1 | ||
51 | - }, | ||
52 | - { | ||
53 | - "colorCode": "333333", | ||
54 | - "colorName": "黑色", | ||
55 | - "colorValue": "", | ||
56 | - "id": 2 | ||
57 | - }, | ||
58 | - { | ||
59 | - "colorCode": "b9b7af", | ||
60 | - "colorName": "灰色", | ||
61 | - "colorValue": "", | ||
62 | - "id": 3 | ||
63 | - }, | ||
64 | - { | ||
65 | - "colorCode": "8b5402", | ||
66 | - "colorName": "棕色", | ||
67 | - "colorValue": "", | ||
68 | - "id": 4 | ||
69 | - }, | ||
70 | - { | ||
71 | - "colorCode": "47ba17", | ||
72 | - "colorName": "绿色", | ||
73 | - "colorValue": "", | ||
74 | - "id": 6 | ||
75 | - }, | ||
76 | - { | ||
77 | - "colorCode": "0000fe", | ||
78 | - "colorName": "蓝色", | ||
79 | - "colorValue": "", | ||
80 | - "id": 7 | ||
81 | - }, | ||
82 | - { | ||
83 | - "colorCode": "710098", | ||
84 | - "colorName": "紫色", | ||
85 | - "colorValue": "", | ||
86 | - "id": 8 | ||
87 | - }, | ||
88 | - { | ||
89 | - "colorCode": "ffeb00", | ||
90 | - "colorName": "黄色", | ||
91 | - "colorValue": "", | ||
92 | - "id": 9 | ||
93 | - }, | ||
94 | - { | ||
95 | - "colorCode": "ee0000", | ||
96 | - "colorName": "红色", | ||
97 | - "colorValue": "", | ||
98 | - "id": 11 | ||
99 | - }, | ||
100 | - { | ||
101 | - "colorCode": "ff5c01", | ||
102 | - "colorName": "橙色", | ||
103 | - "colorValue": "", | ||
104 | - "id": 12 | ||
105 | - }, | ||
106 | - { | ||
107 | - "colorCode": "#ccccc", | ||
108 | - "colorName": "银色", | ||
109 | - "colorValue": "http://img02.static.yohobuy.com/adpic/2014/01/27/13/02c286ddb8f5c6824a64a45ef6c8e2d18d.png", | ||
110 | - "id": 13 | ||
111 | - }, | ||
112 | - { | ||
113 | - "colorCode": "FFD83D", | ||
114 | - "colorName": "金色", | ||
115 | - "colorValue": "http://img01.static.yohobuy.com/adpic/2014/01/27/13/011443440339c06843acfd2f62fda68770.png", | ||
116 | - "id": 14 | ||
117 | - }, | ||
118 | - { | ||
119 | - "colorCode": "#fffff", | ||
120 | - "colorName": "彩色", | ||
121 | - "colorValue": "http://img02.static.yohobuy.com/adpic/2014/01/27/13/0272608508f09e2bf7eb5543bf5cc70d31.png", | ||
122 | - "id": 15 | ||
123 | - } | ||
124 | - ], | ||
125 | - "md5": "a05b6b224e8d517720865f0060b484ad", | ||
126 | - "message": "success" | ||
127 | -} | ||
128 | - | ||
129 | -``` | ||
130 | - | ||
131 | - | ||
132 | - | ||
133 | - | ||
134 | - | ||
135 | - | ||
136 | -# 更新产品颜色接口 | ||
137 | - | ||
138 | -> 接口名: `/productColor/updateProductColor` | ||
139 | - | ||
140 | -### 入参 | ||
141 | - | ||
142 | -------------------------- | ||
143 | -|属性名称|类型|例子|说明|是否必填| | ||
144 | -|--------|----|----|----|--------| | ||
145 | -|id |int|1 |id |是 | | ||
146 | -|colorName|string|nike|颜色名称|是| | ||
147 | -|colorCode|string|n|RGB code|是| | ||
148 | -|colorValue|string|图片URL|一级分类|是| | ||
149 | ---------------------- | ||
150 | - | ||
151 | -### 返回 | ||
152 | - | ||
153 | -``` json | ||
154 | -{ | ||
155 | - "code": 200, | ||
156 | - "data": [], | ||
157 | - "md5": "d751713988987e9331980363e24189ce", | ||
158 | - "message": " success." | ||
159 | -} | ||
160 | - | ||
161 | -``` | ||
162 | - | ||
163 | - | ||
164 | - | ||
165 | -# 获取单个产品颜色接口 | ||
166 | - | ||
167 | -> 接口名: `/productColor/queryProductColor` | ||
168 | - | ||
169 | -### 入参 | ||
170 | - | ||
171 | -------------------------- | ||
172 | -|属性名称|类型|例子|说明|是否必填| | ||
173 | -|--------|----|----|----|--------| | ||
174 | -|param|int|1|颜色ID|是 | ||
175 | ---------------------- | ||
176 | - | ||
177 | -### 返回 | ||
178 | - | ||
179 | -``` json | ||
180 | -{ | ||
181 | - "code": 200, | ||
182 | - "data": { | ||
183 | - "colorCode": "cc", | ||
184 | - "colorName": "彩色", | ||
185 | - "colorValue": "cc-value", | ||
186 | - "id": 16 | ||
187 | - }, | ||
188 | - "md5": "d08f272cd425a5a89528299e5ab9ebdf", | ||
189 | - "message": "success" | ||
190 | -} | ||
191 | - | ||
192 | -``` | ||
193 | - | 1 | +# 品类关联尺码属性管理接口服务定义 |
2 | +--------------------- | ||
3 | + | ||
4 | +# 添加品类关联尺码属性接口 | ||
5 | + | ||
6 | +> 接口名: `/sortAttribute/add/` | ||
7 | + | ||
8 | +### 入参 | ||
9 | + | ||
10 | +------------------------- | ||
11 | +|属性名称|类型|例子|说明|是否必填| | ||
12 | +|--------|----|----|----|--------| | ||
13 | +|sortId |int|1 |品类id |是 | | ||
14 | +|attributeId|int|2|尺码属性id|是| | ||
15 | +|orderBy|int|2|排序|否| | ||
16 | + | ||
17 | +--------------------- | ||
18 | + | ||
19 | +### 返回 | ||
20 | + | ||
21 | +``` json | ||
22 | +{ | ||
23 | + "code":200, | ||
24 | + "message":"success" | ||
25 | +} | ||
26 | + | ||
27 | +``` | ||
28 | + | ||
29 | +# 获取品类关联尺码属性列表 | ||
30 | + | ||
31 | +> 接口名: `sortAttribute/queryList/` | ||
32 | + | ||
33 | +### 入参 | ||
34 | + | ||
35 | +------------------------- | ||
36 | +|属性名称|类型|例子|说明|是否必填| | ||
37 | +|-------|----|----|----|-------| | ||
38 | +|sortId |int|1 |品类id |是 | | ||
39 | +|pageNumber|int|2|页码,默认1|是| | ||
40 | +|pageSize|int|20|记录数,默认10|是| | ||
41 | +-------------------------------- | ||
42 | + | ||
43 | +### 返回 | ||
44 | + | ||
45 | +``` json | ||
46 | +{ | ||
47 | + "code": 200, | ||
48 | + "data": { | ||
49 | + "content": [ | ||
50 | + { | ||
51 | + "attributeId": 26, | ||
52 | + "attributeName": "直径", | ||
53 | + "orderBy": 0, | ||
54 | + "sortId": 74, | ||
55 | + "sortName": "戒指" | ||
56 | + }, | ||
57 | + { | ||
58 | + "attributeId": 44, | ||
59 | + "attributeName": "周长", | ||
60 | + "orderBy": 0, | ||
61 | + "sortId": 74, | ||
62 | + "sortName": "戒指" | ||
63 | + }, | ||
64 | + { | ||
65 | + "attributeId": 45, | ||
66 | + "attributeName": "周长", | ||
67 | + "orderBy": 0, | ||
68 | + "sortId": 74, | ||
69 | + "sortName": "戒指" | ||
70 | + } | ||
71 | + ], | ||
72 | + "number": 1, | ||
73 | + "size": 30, | ||
74 | + "totalElements": 3, | ||
75 | + "totalPages": 1 | ||
76 | + }, | ||
77 | + "md5": "9d7cb51564aa667059932b0e4be237e9", | ||
78 | + "message": "success" | ||
79 | +} | ||
80 | + | ||
81 | +``` | ||
82 | + | ||
83 | + | ||
84 | + | ||
85 | + | ||
86 | + | ||
87 | + | ||
88 | +# 更新品类关联尺码属性接口 | ||
89 | + | ||
90 | +> 接口名: `/sortAttribute/update` | ||
91 | + | ||
92 | +### 入参 | ||
93 | + | ||
94 | +------------------------- | ||
95 | +|属性名称|类型|例子|说明|是否必填| | ||
96 | +|--------|----|----|----|--------| | ||
97 | +|sortId |int|1 |品类id |是 | | ||
98 | +|attributeId|int|2|尺码属性id|是| | ||
99 | +|preAttributeId |int|1 |修改前尺码属性id |是 | | ||
100 | +|orderBy|int|2|排序|否| | ||
101 | +--------------------- | ||
102 | + | ||
103 | +### 返回 | ||
104 | + | ||
105 | +``` json | ||
106 | +{ | ||
107 | + "code": 200, | ||
108 | + "data": [], | ||
109 | + "md5": "d751713988987e9331980363e24189ce", | ||
110 | + "message": " success." | ||
111 | +} | ||
112 | + | ||
113 | +``` | ||
114 | + | ||
115 | +# 删除品类关联尺码属性接口 | ||
116 | + | ||
117 | +> 接口名: `/sortAttribute/delete` | ||
118 | + | ||
119 | +### 入参 | ||
120 | + | ||
121 | +------------------------- | ||
122 | +|属性名称|类型|例子|说明|是否必填| | ||
123 | +|--------|----|----|----|--------| | ||
124 | +|sortId |int|1 |品类id |是 | | ||
125 | +|attributeId|int|2|尺码属性id|是| | ||
126 | + | ||
127 | +--------------------- | ||
128 | + | ||
129 | +### 返回 | ||
130 | + | ||
131 | +``` json | ||
132 | +{ | ||
133 | + "code": 200, | ||
134 | + "data": [], | ||
135 | + "md5": "d751713988987e9331980363e24189ce", | ||
136 | + "message": " success." | ||
137 | +} | ||
138 | + | ||
139 | +``` | ||
140 | + | ||
141 | +# 获取单个品类关联尺码属性接口 | ||
142 | + | ||
143 | +> 接口名: `/sortAttribute/queryBySortAttr` | ||
144 | + | ||
145 | +### 入参 | ||
146 | + | ||
147 | +------------------------- | ||
148 | +|属性名称|类型|例子|说明|是否必填| | ||
149 | +|--------|----|----|----|--------| | ||
150 | +|sortId |int|1 |品类id |是 | | ||
151 | +|attributeId|int|2|尺码属性id|是| | ||
152 | +--------------------- | ||
153 | + | ||
154 | +### 返回 | ||
155 | + | ||
156 | +``` json | ||
157 | +{ | ||
158 | + "code": 200, | ||
159 | + "data": { | ||
160 | + "attributeId": 26, | ||
161 | + "attributeName": "直径", | ||
162 | + "orderBy": 0, | ||
163 | + "sortId": 74, | ||
164 | + "sortName": "戒指" | ||
165 | + }, | ||
166 | + "md5": "354b1dbdc27b1d285dd2fc6743906f84", | ||
167 | + "message": "success" | ||
168 | +} | ||
169 | + | ||
170 | +``` | ||
171 | + |
@@ -151,6 +151,8 @@ | @@ -151,6 +151,8 @@ | ||
151 | |属性名称|类型|例子|说明|是否必填| | 151 | |属性名称|类型|例子|说明|是否必填| |
152 | |--------|----|----|----|--------| | 152 | |--------|----|----|----|--------| |
153 | |categoryId|int|1|目录ID|是 | 153 | |categoryId|int|1|目录ID|是 |
154 | +|page|int|1|当前第几页|否 | ||
155 | +|size|int|1|每页多少条|否 | ||
154 | --------------------- | 156 | --------------------- |
155 | 157 | ||
156 | ### 返回 | 158 | ### 返回 |
@@ -158,7 +160,8 @@ | @@ -158,7 +160,8 @@ | ||
158 | ``` json | 160 | ``` json |
159 | { | 161 | { |
160 | "code": 200, | 162 | "code": 200, |
161 | - "data": [ | 163 | + "data": |
164 | + "list":[ | ||
162 | { | 165 | { |
163 | "attributeId": 15, | 166 | "attributeId": 15, |
164 | "attributeName": "防风外套属性", | 167 | "attributeName": "防风外套属性", |
inferface-document/productPrice.md
0 → 100644
1 | +一、查询价格列表接口 | ||
2 | + 接口链接:http://172.16.6.227:8083/yohobuy-platform-web/product/queryProductPriceList | ||
3 | + 类型:POST请求 | ||
4 | + 请求参数:{"product_skn" : 50000060, "shop_id" : 35, "brand_id" : 137, "supplier_id" : 0, "is_jit" : "N", "is_auditing" : 200, "stock" : 1, "gender": "3", "max_sort_id" : 7, "middle_sort_id": 58, "smallSortId" :161, "page": 10, "size" :100} | ||
5 | + | ||
6 | + 参数说明:product_skn 商品的skn | ||
7 | + shop_id 店铺Id | ||
8 | + brand_id 品牌Id | ||
9 | + supplier_id 供应商Id | ||
10 | + is_jit 是否是代销不入库 | ||
11 | + is_auditing 上下架状态 1代表上架 0代表下架 | ||
12 | + stock 是否有库存,1代表有库存,0代表无库存 | ||
13 | + gender 性别 1代表男性,2代表女性 3代表通用 | ||
14 | + max_sort_id 大分类的Id | ||
15 | + middle_sort_id 中分类Id | ||
16 | + smallSortId 小分类的Id | ||
17 | + page : 当前页数 从1开始 | ||
18 | + size :每页显示条数 | ||
19 | + | ||
20 | + 返回 : | ||
21 | + { | ||
22 | + "code": 200, | ||
23 | + "data": { | ||
24 | + "content": [ | ||
25 | + { | ||
26 | + "brand_id": 175, | ||
27 | + "brand_name": "团一", | ||
28 | + "founder": 9278, | ||
29 | + "max_sort_id": 10, | ||
30 | + "max_sort_name": "创意生活", | ||
31 | + "middle_sort_id": 101, | ||
32 | + "middle_sort_name": "文具", | ||
33 | + "product_name": "团一复古花纹满本图案牛皮纸笔记本", | ||
34 | + "product_pic_url": "http://img12.static.yhbimg.com/goodsimg/2011/06/24/13/02e571a64cea3ea8e734f8f0aae790fb4f.jpg?imageView/0/w/60/h/60", | ||
35 | + "product_skn": 50000055, | ||
36 | + "retail_price": 29, | ||
37 | + "return_coin": 300, | ||
38 | + "sales_price": 29, | ||
39 | + "small_sort_id": 111, | ||
40 | + "small_sort_name": "本子", | ||
41 | + "supplier_id": 0, | ||
42 | + "updateTime": "2016-02-02 10:37:43", | ||
43 | + "vip1_price": 0, | ||
44 | + "vip2_price": 0, | ||
45 | + "vip3_price": 0, | ||
46 | + "vip_discount_type": 1, | ||
47 | + "vip_price": 0 | ||
48 | + }, | ||
49 | + { | ||
50 | + "brand_id": 187, | ||
51 | + "brand_name": "顽", | ||
52 | + "founder": 9278, | ||
53 | + "max_sort_id": 8, | ||
54 | + "max_sort_name": "服配", | ||
55 | + "middle_sort_id": 66, | ||
56 | + "middle_sort_name": "配饰", | ||
57 | + "product_name": "PLAY顽植物大战僵尸坚果墙挂饰", | ||
58 | + "product_pic_url": "http://img10.static.yhbimg.com/goodsimg/2011/06/23/05/01bda4fc443c96aa3a2e9287c3c17be87a.jpg?imageView/0/w/60/h/60", | ||
59 | + "product_skn": 50000056, | ||
60 | + "retail_price": 18, | ||
61 | + "return_coin": 0, | ||
62 | + "sales_price": 18, | ||
63 | + "small_sort_id": 305, | ||
64 | + "small_sort_name": "挂饰", | ||
65 | + "supplier_id": 0, | ||
66 | + "updateTime": "2016-02-02 10:37:43", | ||
67 | + "vip1_price": 0, | ||
68 | + "vip2_price": 0, | ||
69 | + "vip3_price": 0, | ||
70 | + "vip_discount_type": 1, | ||
71 | + "vip_price": 0 | ||
72 | + } | ||
73 | + ], | ||
74 | + "number": 1, | ||
75 | + "size": 2, | ||
76 | + "totalElements": 2, | ||
77 | + "totalPages": 1 | ||
78 | + }, | ||
79 | + "md5": "9a92b3c94d9676a8089169ee46ebce4a", | ||
80 | + "message": "Product Price List." | ||
81 | +} | ||
82 | + | ||
83 | + | ||
84 | + | ||
85 | + | ||
86 | +二: 查询所有的店铺信息 | ||
87 | + | ||
88 | +请求链接:http://172.16.6.227:8083/yohobuy-platform-web/ShopsRest/queryAllShops | ||
89 | +请求参数:无 | ||
90 | + | ||
91 | +返回 | ||
92 | + | ||
93 | +{ | ||
94 | + "code": 200, | ||
95 | + "data": [ | ||
96 | + { | ||
97 | + "checkStatus": 0, | ||
98 | + "shopName": "得宝旗舰店", | ||
99 | + "shopsId": 15, | ||
100 | + "status": 0 | ||
101 | + }, | ||
102 | + { | ||
103 | + "checkStatus": 0, | ||
104 | + "shopName": ":CHOCOOLATEQ", | ||
105 | + "shopsId": 16, | ||
106 | + "status": 0 | ||
107 | + } | ||
108 | + ], | ||
109 | + "message": "操作成功" | ||
110 | +} | ||
111 | + | ||
112 | + | ||
113 | +三:查询所有的品牌列表 | ||
114 | +请求链接:http://172.16.6.227:8083/yohobuy-platform-web/erpproduct/brands/queryAllBrands | ||
115 | +请求参数:无 | ||
116 | +返回 | ||
117 | +{ | ||
118 | + "code": 200, | ||
119 | + "data": [ | ||
120 | + { | ||
121 | + "brandDomain": "lily", | ||
122 | + "brandName": "lily", | ||
123 | + "brandNameEn": "lily", | ||
124 | + "id": 1431, | ||
125 | + "status": 1 | ||
126 | + }, | ||
127 | + { | ||
128 | + "brandDomain": "test", | ||
129 | + "brandName": "test", | ||
130 | + "brandNameCn": "", | ||
131 | + "brandNameEn": "test", | ||
132 | + "id": 1430, | ||
133 | + "status": 1 | ||
134 | + } | ||
135 | + ], | ||
136 | + "md5": "03098c8c158c8405117daadb91ed792a", | ||
137 | + "message": "Product Brand List." | ||
138 | +} | ||
139 | + | ||
140 | +四:查询所有的供应商列表信息 | ||
141 | +请求链接:http://172.16.6.227:8083/yohobuy-platform-web/supplier/supplier/queryAllSupplier | ||
142 | +请求参数:无 | ||
143 | +响应: | ||
144 | +{ | ||
145 | + "code": 200, | ||
146 | + "data": [ | ||
147 | + { | ||
148 | + "brandId": 0, | ||
149 | + "supplierId": 1, | ||
150 | + "supplierName": "10*1" | ||
151 | + }, | ||
152 | + { | ||
153 | + "brandId": 0, | ||
154 | + "supplierId": 2, | ||
155 | + "supplierName": "广派商业(上海)有限公司" | ||
156 | + }, | ||
157 | + { | ||
158 | + "brandId": 0, | ||
159 | + "supplierId": 3, | ||
160 | + "supplierName": "广州市海珠区艺柏时装经营部" | ||
161 | + } | ||
162 | + ], | ||
163 | + "message": "操作成功" | ||
164 | +} | ||
165 | + | ||
166 | +五:查询商品是否是JIT配置 | ||
167 | +请求链接:http://172.16.6.227:8083/yohobuy-platform-web/product/queryJitConfigList | ||
168 | +请求参数:无 | ||
169 | +响应: | ||
170 | +{ | ||
171 | + "code": 200, | ||
172 | + "data": { | ||
173 | + "N": "非JIT", | ||
174 | + "Y": "是JIT" | ||
175 | + }, | ||
176 | + "md5": "47b9033a2b45f1f51739d7c8ca2b2e29", | ||
177 | + "message": "Jit Config List." | ||
178 | +} | ||
179 | + | ||
180 | +六:查询商品状态的配置 | ||
181 | +请求链接:http://172.16.6.227:8083/yohobuy-platform-web/product/queryProductStatusConfigList | ||
182 | +请求参数:无 | ||
183 | +响应: | ||
184 | +{ | ||
185 | + "code": 200, | ||
186 | + "data": { | ||
187 | + "0": "下架", | ||
188 | + "200": "上架" | ||
189 | + }, | ||
190 | + "md5": "3e1f4e393d82140086f3b11342196cb6", | ||
191 | + "message": "Status Config List." | ||
192 | +} | ||
193 | + | ||
194 | + | ||
195 | +六:查询商品库存情况的配置 | ||
196 | +请求链接:http://172.16.6.227:8083/yohobuy-platform-web/product/queryProductStockConfigList | ||
197 | +请求参数:无 | ||
198 | +响应: | ||
199 | +{ | ||
200 | + "code": 200, | ||
201 | + "data": { | ||
202 | + "0": "无库存", | ||
203 | + "1": "有库存" | ||
204 | + }, | ||
205 | + "md5": "b5fdee6640106a6eff445b8181a7e96b", | ||
206 | + "message": "Stock Config List." | ||
207 | +} | ||
208 | + | ||
209 | + | ||
210 | +七:查询商品所属性别分类信息 | ||
211 | +请求链接:http://172.16.6.227:8083/yohobuy-platform-web/product/queryGenderConfigList | ||
212 | +请求参数:无 | ||
213 | +响应: | ||
214 | +{ | ||
215 | + "code": 200, | ||
216 | + "data": { | ||
217 | + "1": "男", | ||
218 | + "2": "女", | ||
219 | + "3": "通用" | ||
220 | + }, | ||
221 | + "md5": "454312b4aadbcd602078c175631f20ea", | ||
222 | + "message": "Gender Config List." | ||
223 | +} | ||
224 | + | ||
225 | + | ||
226 | +八:查询所有的一级分类列表 | ||
227 | +请求链接:http://172.16.6.227:8083/yohobuy-platform-web/product/queryAllMaxSortList | ||
228 | +请求参数:无 | ||
229 | +响应:(备注: id 和 sortName 有用) | ||
230 | +{ | ||
231 | + "code": 200, | ||
232 | + "data": [ | ||
233 | + { | ||
234 | + "booleanStatus": true, | ||
235 | + "createTime": 0, | ||
236 | + "gender": 3, | ||
237 | + "id": 365, | ||
238 | + "isHot": "N", | ||
239 | + "orderBy": 0, | ||
240 | + "parentId": 0, | ||
241 | + "sortCode": "365,0,0", | ||
242 | + "sortInitials": "潮童", | ||
243 | + "sortLevel": 1, | ||
244 | + "sortName": "潮童", | ||
245 | + "status": 1, | ||
246 | + "updateTime": 1454060643 | ||
247 | + }, | ||
248 | + { | ||
249 | + "booleanStatus": false, | ||
250 | + "createTime": 0, | ||
251 | + "gender": 3, | ||
252 | + "id": 241, | ||
253 | + "isHot": "N", | ||
254 | + "orderBy": 0, | ||
255 | + "parentId": 0, | ||
256 | + "sortCode": "241,0,0", | ||
257 | + "sortInitials": "数码周边", | ||
258 | + "sortLevel": 1, | ||
259 | + "sortName": "数码周边", | ||
260 | + "status": 0, | ||
261 | + "updateTime": 0 | ||
262 | + } | ||
263 | + ], | ||
264 | + "md5": "dc2b4caace98d678cf688edcdd204675", | ||
265 | + "message": "Product Sort List." | ||
266 | +} | ||
267 | + | ||
268 | + | ||
269 | +九:根据skn获取价格信息 | ||
270 | +请求链接 : http://172.16.6.227:8083/yohobuy-platform-web/product/getProductPrice | ||
271 | +参数:{"param": 50000060} | ||
272 | +响应: | ||
273 | + | ||
274 | +{ | ||
275 | + "code": 200, | ||
276 | + "data": { | ||
277 | + "founder": 9278, | ||
278 | + "product_skn": 50000060, | ||
279 | + "retail_price": 188, | ||
280 | + "return_coin": 88, | ||
281 | + "sales_price": 211.22, | ||
282 | + "updateTime": "2016-02-02 10:37:43", | ||
283 | + "vip1_price": 99.56, | ||
284 | + "vip2_price": 99.89, | ||
285 | + "vip3_price": 99.44, | ||
286 | + "vip_discount_type": 5, | ||
287 | + "vip_price": 99 | ||
288 | + }, | ||
289 | + "md5": "98baa90e7b2ed957b94b94361aa8e05e", | ||
290 | + "message": "Product Price get success." | ||
291 | +} | ||
292 | + | ||
293 | +十:单个商品变价 | ||
294 | + | ||
295 | +请求链接 :http://172.16.6.227:8083/yohobuy-platform-web/product/updateProductPrice | ||
296 | +参数:{ "productSkn": 50000060, "salesPrice" :211.22, "vipDiscountType":5, "founder":9278, "returnCoin":88, "vipPrice":99} | ||
297 | +备注 :productSkn 商品标识 数字型 | ||
298 | + salesPrice 销售价格 数字型 | ||
299 | + vipDiscountType 折扣类型 1、2、3、4、5 | ||
300 | + founder : 操作人标识 数字型 | ||
301 | + returnCoin :返回币数 整型 | ||
302 | + vipPrice : vip价格 vipDiscountType 为4时必填 | ||
303 | + vip1Price vip2Price vip3Price 折扣类型为5时必填 | ||
304 | + | ||
305 | +响应: | ||
306 | +{ | ||
307 | + "code": 200, | ||
308 | + "data": [], | ||
309 | + "md5": "d751713988987e9331980363e24189ce", | ||
310 | + "message": "Product Price update success." | ||
311 | +} | ||
312 | + | ||
313 | +备注 :code 为200代表成功 |
-
Please register or login to post a comment