update productAttribute
Showing
1 changed file
with
128 additions
and
15 deletions
@@ -103,35 +103,148 @@ | @@ -103,35 +103,148 @@ | ||
103 | 103 | ||
104 | ``` | 104 | ``` |
105 | 105 | ||
106 | +# 更新产品属性接口 | ||
107 | + | ||
108 | +> 接口名: `/product/updateProductAttribute` | ||
109 | + | ||
110 | +### 入参 | ||
111 | + | ||
112 | +------------------------- | ||
113 | +|属性名称|类型|例子|说明|是否必填| | ||
114 | +|--------|----|----|----|--------| | ||
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|展示位置|是 | ||
130 | +--------------------- | ||
131 | + | ||
132 | +### 返回 | ||
133 | + | ||
134 | +``` json | ||
135 | +{ | ||
136 | + "code": 200, | ||
137 | + "data": [], | ||
138 | + "md5": "d751713988987e9331980363e24189ce", | ||
139 | + "message": "Product Attribute update success." | ||
140 | +} | ||
141 | + | ||
142 | +``` | ||
143 | + | ||
106 | # 获取产品属性列表接口 | 144 | # 获取产品属性列表接口 |
107 | 145 | ||
108 | -> 接口名: `/product/getAttr` | 146 | +> 接口名: `/product/queryProductAttributeList` |
109 | 147 | ||
110 | ### 入参 | 148 | ### 入参 |
111 | 149 | ||
112 | ------------------------- | 150 | ------------------------- |
113 | |属性名称|类型|例子|说明|是否必填| | 151 | |属性名称|类型|例子|说明|是否必填| |
114 | |--------|----|----|----|--------| | 152 | |--------|----|----|----|--------| |
115 | -|id|int|1|商品属性ID| | 153 | +|categoryId|int|1|目录ID|是 |
116 | --------------------- | 154 | --------------------- |
117 | 155 | ||
118 | ### 返回 | 156 | ### 返回 |
119 | 157 | ||
120 | ``` json | 158 | ``` json |
121 | { | 159 | { |
122 | - code:200, | ||
123 | - message:"", | ||
124 | - data: { | ||
125 | - list: [{ | ||
126 | - attrName: '', //属性名称 | ||
127 | - saleType: '', //销售类型 | ||
128 | - inputType: '', //输入类型 | ||
129 | - enableSearch: '', //启用搜索 | ||
130 | - id: '', //品类ID | ||
131 | - }] | ||
132 | - page: '', //当前第几页 | ||
133 | - size: '', //每页多少条 | ||
134 | - } | 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 | + | ||
207 | +``` | ||
208 | + | ||
209 | +# 获取产品单个属性列表接口 | ||
210 | + | ||
211 | +> 接口名: `/product/getProductAttribute` | ||
212 | + | ||
213 | +### 入参 | ||
214 | + | ||
215 | +------------------------- | ||
216 | +|属性名称|类型|例子|说明|是否必填| | ||
217 | +|--------|----|----|----|--------| | ||
218 | +|attributeId|int|1|属性ID|是 | ||
219 | +--------------------- | ||
220 | + | ||
221 | +### 返回 | ||
222 | + | ||
223 | +``` json | ||
224 | +{ | ||
225 | + "code": 200, | ||
226 | + "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 | ||
245 | + }, | ||
246 | + "md5": "dfc645ecb0c66c8d4771dd2a749047e8", | ||
247 | + "message": "Product Attribute get success." | ||
135 | } | 248 | } |
136 | 249 | ||
137 | ``` | 250 | ``` |
-
Please register or login to post a comment