Showing
1 changed file
with
23 additions
and
174 deletions
1 | # 产品颜色管理接口服务定义 | 1 | # 产品颜色管理接口服务定义 |
2 | --------------------- | 2 | --------------------- |
3 | 3 | ||
4 | -# 添加(更新)颜色接口 | 4 | +# 添加颜色接口 |
5 | 5 | ||
6 | -> 接口名: `/product/update` | 6 | +> 接口名: `/productColor/addProductColor/` |
7 | 7 | ||
8 | ### 入参 | 8 | ### 入参 |
9 | 9 | ||
10 | ------------------------- | 10 | ------------------------- |
11 | |属性名称|类型|例子|说明|是否必填| | 11 | |属性名称|类型|例子|说明|是否必填| |
12 | |--------|----|----|----|--------| | 12 | |--------|----|----|----|--------| |
13 | -|categoryName|string|nike|品类名称|是| | ||
14 | -|categoryAbbr|string|n|品类缩写|是| | ||
15 | -|firstCategory|string|根目录|一级分类|否| | ||
16 | -|secondCategory|string|根目录|二级分类|否| | ||
17 | -|thirdCategory|string|根目录|三级分类|否| | ||
18 | -|categorySort|number|0|排序|否| | ||
19 | -|categoryStatus|boolean|true|状态|否| | ||
20 | -|id|int|1|品类ID| | 13 | +|colorName|string|nike|颜色名称|是| |
14 | +|colorCode|string|n|RGB code|是| | ||
15 | +|colorValue|string|图片URL|一级分类|是| | ||
16 | + | ||
21 | --------------------- | 17 | --------------------- |
22 | 18 | ||
23 | ### 返回 | 19 | ### 返回 |
@@ -25,14 +21,14 @@ | @@ -25,14 +21,14 @@ | ||
25 | ``` json | 21 | ``` json |
26 | { | 22 | { |
27 | "code":200, | 23 | "code":200, |
28 | - "message":"添加成功!" | 24 | + "message":"success" |
29 | } | 25 | } |
30 | 26 | ||
31 | ``` | 27 | ``` |
32 | 28 | ||
33 | -# 获取品类列表 | 29 | +# 获取颜色列表 |
34 | 30 | ||
35 | -> 接口名: `/product/getClassList` | 31 | +> 接口名: `/productColor/queryProductColors` |
36 | 32 | ||
37 | ### 入参 | 33 | ### 入参 |
38 | 34 | ||
@@ -66,44 +62,11 @@ | @@ -66,44 +62,11 @@ | ||
66 | ``` | 62 | ``` |
67 | 63 | ||
68 | 64 | ||
69 | -# 添加产品属性接口 | ||
70 | - | ||
71 | -> 接口名: `/product/addProductAttribute` | ||
72 | 65 | ||
73 | -### 入参 | ||
74 | 66 | ||
75 | -------------------------- | ||
76 | -|属性名称|类型|例子|说明|是否必填| | ||
77 | -|--------|----|----|----|--------| | ||
78 | -|attributeName|string|衣长|属性名称|是| | ||
79 | -|categoryId|number|6|目录ID|是| | ||
80 | -|saleType|number|1|销售类型|是| | ||
81 | -|inputType|string|checkbox|输入类型|是| | ||
82 | -|attributeType|number|2|属性类型|否| | ||
83 | -|isMust|String|N|是否必选|否| | ||
84 | -|isSearch|String|Y|是否启动搜索|否| | ||
85 | -|maxValueLen|number|50|最大输入值|否| | ||
86 | -|isAllowAlias|String|N|是否允许别名|否| | ||
87 | -|orderBy|number|0|排序|否| | ||
88 | -|state|number|1|状态|否| | ||
89 | -|remark|string|abc|备注|否| | ||
90 | -|attributeValues|string|反光,毛呢,网布,皮革,麻,帆布|属性值|是| | ||
91 | -|displayPosition|int|1|展示位置|是 | ||
92 | ---------------------- | ||
93 | 67 | ||
94 | -### 返回 | ||
95 | 68 | ||
96 | -``` json | ||
97 | -{ | ||
98 | - "code": 200, | ||
99 | - "data": [], | ||
100 | - "md5": "d751713988987e9331980363e24189ce", | ||
101 | - "message": "Product Attribute Add success." | ||
102 | -} | ||
103 | - | ||
104 | -``` | ||
105 | - | ||
106 | -# 更新产品属性接口 | 69 | +# 更新产品颜色接口 |
107 | 70 | ||
108 | > 接口名: `/product/updateProductAttribute` | 71 | > 接口名: `/product/updateProductAttribute` |
109 | 72 | ||
@@ -112,21 +75,10 @@ | @@ -112,21 +75,10 @@ | ||
112 | ------------------------- | 75 | ------------------------- |
113 | |属性名称|类型|例子|说明|是否必填| | 76 | |属性名称|类型|例子|说明|是否必填| |
114 | |--------|----|----|----|--------| | 77 | |--------|----|----|----|--------| |
115 | -|attributId|int|15|属性ID|是| | ||
116 | -|attributeName|string|衣长|属性名称|是| | ||
117 | -|categoryId|number|6|目录ID|是| | ||
118 | -|saleType|number|1|销售类型|是| | ||
119 | -|inputType|string|checkbox|输入类型|是| | ||
120 | -|attributeType|number|2|属性类型|否| | ||
121 | -|isMust|String|N|是否必选|否| | ||
122 | -|isSearch|String|Y|是否启动搜索|否| | ||
123 | -|maxValueLen|number|50|最大输入值|否| | ||
124 | -|isAllowAlias|String|N|是否允许别名|否| | ||
125 | -|orderBy|number|0|排序|否| | ||
126 | -|state|number|1|状态|否| | ||
127 | -|remark|string|abc|备注|否| | ||
128 | -|attributeValues|string|反光,毛呢,网布,皮革,麻,帆布|属性值|是| | ||
129 | -|displayPosition|int|1|展示位置|是 | 78 | +|id |int|1 |id |是 | |
79 | +|colorName|string|nike|颜色名称|是| | ||
80 | +|colorCode|string|n|RGB code|是| | ||
81 | +|colorValue|string|图片URL|一级分类|是| | ||
130 | --------------------- | 82 | --------------------- |
131 | 83 | ||
132 | ### 返回 | 84 | ### 返回 |
@@ -141,81 +93,18 @@ | @@ -141,81 +93,18 @@ | ||
141 | 93 | ||
142 | ``` | 94 | ``` |
143 | 95 | ||
144 | -# 获取产品属性列表接口 | ||
145 | - | ||
146 | -> 接口名: `/product/queryProductAttributeList` | ||
147 | - | ||
148 | -### 入参 | ||
149 | - | ||
150 | -------------------------- | ||
151 | -|属性名称|类型|例子|说明|是否必填| | ||
152 | -|--------|----|----|----|--------| | ||
153 | -|categoryId|int|1|目录ID|是 | ||
154 | ---------------------- | ||
155 | - | ||
156 | -### 返回 | ||
157 | - | ||
158 | -``` json | ||
159 | -{ | ||
160 | - "code": 200, | ||
161 | - "data": [ | ||
162 | - { | ||
163 | - "attributeId": 15, | ||
164 | - "attributeName": "防风外套属性", | ||
165 | - "attributeType": 2, | ||
166 | - "attributeValues": "11", | ||
167 | - "belong": 1, | ||
168 | - "categoryId": 454, | ||
169 | - "createTime": 1453951139, | ||
170 | - "displayPosition": 1, | ||
171 | - "inputType": "checkbox", | ||
172 | - "isAllowAlias": "Y", | ||
173 | - "isColor": "N", | ||
174 | - "isMust": "Y", | ||
175 | - "isSearch": "Y", | ||
176 | - "maxValueLen": 50, | ||
177 | - "orderBy": 0, | ||
178 | - "remark": "备注", | ||
179 | - "saleType": 0, | ||
180 | - "state": 0 | ||
181 | - }, | ||
182 | - { | ||
183 | - "attributeId": 16, | ||
184 | - "attributeName": "纹理", | ||
185 | - "attributeType": 2, | ||
186 | - "attributeValues": "条纹,豹纹", | ||
187 | - "belong": 1, | ||
188 | - "categoryId": 454, | ||
189 | - "createTime": 1453966719, | ||
190 | - "displayPosition": 2, | ||
191 | - "inputType": "checkbox", | ||
192 | - "isAllowAlias": "N", | ||
193 | - "isColor": "N", | ||
194 | - "isMust": "N", | ||
195 | - "isSearch": "N", | ||
196 | - "maxValueLen": 50, | ||
197 | - "orderBy": 0, | ||
198 | - "remark": "备注", | ||
199 | - "saleType": 0, | ||
200 | - "state": 1 | ||
201 | - } | ||
202 | - ], | ||
203 | - "md5": "b4a7dec9fb1b236e4aec02ba40411e42", | ||
204 | - "message": "Product Attribute List." | ||
205 | -} | ||
206 | 96 | ||
207 | -``` | ||
208 | 97 | ||
209 | -# 获取产品单个属性列表接口 | 98 | +# 获取单个产品颜色接口 |
210 | 99 | ||
211 | -> 接口名: `/product/getProductAttribute` | 100 | +> 接口名: `/product/queryProductColor` |
212 | 101 | ||
213 | ### 入参 | 102 | ### 入参 |
214 | 103 | ||
215 | ------------------------- | 104 | ------------------------- |
216 | |属性名称|类型|例子|说明|是否必填| | 105 | |属性名称|类型|例子|说明|是否必填| |
217 | |--------|----|----|----|--------| | 106 | |--------|----|----|----|--------| |
218 | -|attributeId|int|1|属性ID|是 | 107 | +|param|int|1|颜色ID|是 |
219 | --------------------- | 108 | --------------------- |
220 | 109 | ||
221 | ### 返回 | 110 | ### 返回 |
@@ -224,54 +113,14 @@ | @@ -224,54 +113,14 @@ | ||
224 | { | 113 | { |
225 | "code": 200, | 114 | "code": 200, |
226 | "data": { | 115 | "data": { |
227 | - "attributeId": 22, | ||
228 | - "attributeName": "材质", | ||
229 | - "attributeType": 2, | ||
230 | - "attributeValues": "反光,毛呢,网布,皮革,麻,帆布", | ||
231 | - "belong": 1, | ||
232 | - "categoryId": 6, | ||
233 | - "createTime": 1453970276, | ||
234 | - "displayPosition": 1, | ||
235 | - "inputType": "checkbox", | ||
236 | - "isAllowAlias": "N", | ||
237 | - "isColor": "N", | ||
238 | - "isMust": "N", | ||
239 | - "isSearch": "N", | ||
240 | - "maxValueLen": 50, | ||
241 | - "orderBy": 0, | ||
242 | - "remark": "备注", | ||
243 | - "saleType": 1, | ||
244 | - "state": 1 | 116 | + "colorCode": "cc", |
117 | + "colorName": "hongse", | ||
118 | + "colorValue": "cc-value", | ||
119 | + "id": 16 | ||
245 | }, | 120 | }, |
246 | - "md5": "dfc645ecb0c66c8d4771dd2a749047e8", | ||
247 | - "message": "Product Attribute get success." | 121 | + "md5": "d08f272cd425a5a89528299e5ab9ebdf", |
122 | + "message": "success" | ||
248 | } | 123 | } |
249 | 124 | ||
250 | ``` | 125 | ``` |
251 | 126 | ||
252 | -# 获取产品列表 | ||
253 | - | ||
254 | -> 接口名: `/product/getList` | ||
255 | - | ||
256 | -------------------------- | ||
257 | -|属性名称|类型|例子|说明|是否必填| | ||
258 | -|--------|----|----|----|--------| | ||
259 | -| | | | | | | ||
260 | ---------------------- | ||
261 | - | ||
262 | -### 返回 | ||
263 | - | ||
264 | -``` json | ||
265 | -{ | ||
266 | - code:200, | ||
267 | - message:"", | ||
268 | - data: { | ||
269 | - list: [{ | ||
270 | - //... | ||
271 | - }] | ||
272 | - page: '', //当前第几页 | ||
273 | - size: '', //每页多少条 | ||
274 | - } | ||
275 | -} | ||
276 | - | ||
277 | -``` |
-
Please register or login to post a comment