Update addSellerProduct.md
Showing
1 changed file
with
46 additions
and
0 deletions
1 | +## 1、新增基础商品## | ||
2 | + | ||
3 | +新增基础商品(/SellerProductController/addProduct) | ||
4 | + | ||
5 | +#### 请求参数 | ||
6 | +| 参数名称 | 参数类型 | 可否为空 | 示例 | 备注 | | ||
7 | +|:-------| -----:|-----:|-----:|----:| | ||
8 | +|productName|string|是|商品名称|| | ||
9 | +|brandId|int|是|22|品牌的ID号| | ||
10 | +|maxSortId|int|否|1|1 日 2 周 3 月| | ||
11 | +|reqTime|string|是|20150306|日报 月报 日期| | ||
12 | +|beginTime|string|是|20150306|周报:开始日期| | ||
13 | +|endTime|string|是|20150308|周报:结束日期| | ||
14 | +|productSkn|int|是|1222|skn| | ||
15 | +|productSkc|int|是|1222|skc| | ||
16 | +|productSku|int|是|1222|sku| | ||
17 | +|factoryCode|string|是|234234|出厂编号| | ||
18 | +|sortId|int|是|12|产品分类 | | ||
19 | +|shopId|int|否|17|是|店铺ID | | ||
20 | + | ||
21 | +注意,通用的头部没有列出。 | ||
22 | +请求示例 | ||
23 | +http://127.0.0.1:8088/platform/SellerProductController/addProduct | ||
24 | + | ||
25 | +## 请求样例数据 | ||
26 | +``` json | ||
27 | +请求样例: | ||
28 | +{"productName":"商品名", "brandId":4, "maxSortId":12, "middleSortId" : 144, "smallSortId":145 , "gender" : "1", "retailPrice":"44.44", "salesPrice": "33.33", | ||
29 | + "goodsYears":2019, "goodsSeason":1, "factoryCode":"厂家编号", "ageLevel":"1|2", "seasons":"1", "sellerGoodsInfoStr" : "[{\"factoryCode\":\"123123123\",\"factoryGoodsName\":\"蓝色1111\",\"goodsColorImage\":\"\",\"goodsName\":\"蓝色\",\"colorId\":36,\"goodsSizeList\":[{\"sizeId\":\"203\",\"factoryCode\":\"12dad%%\",\"isSuppled\":\"Y\",\"upmCode\":\"\",\"balanceTimeStr\":\"\",\"salePrice\":\"33.33\",\"sizeName\":\"M\"},{\"sizeId\":\"207\",\"factoryCode\":\"adasd%%\",\"isSuppled\":\"N\",\"upmCode\":\"\",\"balanceTimeStr\":\"\",\"salePrice\":\"33.33\",\"sizeName\":\"S\"}],\"isNew\":\"Y\",\"isAdd\":true,\"_num\":0,\"__index\":0},{\"factoryCode\":\"aas23123\",\"factoryGoodsName\":\"蓝色3333\",\"goodsColorImage\":\"\",\"goodsName\":\"蓝色\",\"colorId\":33,\"goodsSizeList\":[{\"sizeId\":\"207\",\"factoryCode\":\"asdasd$$\",\"isSuppled\":\"Y\",\"upmCode\":\"\",\"balanceTimeStr\":\"\",\"salePrice\":\"33.33\",\"sizeName\":\"S\"},{\"sizeId\":\"203\",\"factoryCode\":\"##sdasd\",\"isSuppled\":\"Y\",\"upmCode\":\"\",\"balanceTimeStr\":\"\",\"salePrice\":\"33.33\",\"sizeName\":\"M\"}],\"isNew\":\"Y\",\"isAdd\":true,\"_num\":1,\"__index\":1}]" | ||
30 | +} | ||
31 | +正常返回: | ||
32 | +{ | ||
33 | + "code": 200, | ||
34 | + "data": [], | ||
35 | + "md5": "d751713988987e9331980363e24189ce", | ||
36 | + "message": "添加成功" | ||
37 | +} | ||
38 | +异常返回: | ||
39 | +{ | ||
40 | + "code": 1001, | ||
41 | + "data": ["错误一", "错误二"], | ||
42 | + "md5": "d751713988987e9331980363e24189ce", | ||
43 | + "message": "参数校验错误" | ||
44 | +} | ||
45 | + | ||
46 | +``` |
-
Please register or login to post a comment