|
|
## 1、新增基础商品##
|
|
|
|
|
|
新增基础商品(/SellerProductController/addProduct)
|
|
|
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|----:|
|
|
|
|productName|string|是|商品名称||
|
|
|
|brandId|int|是|22|品牌的ID号|
|
|
|
|maxSortId|int|否|1|1 日 2 周 3 月|
|
|
|
|reqTime|string|是|20150306|日报 月报 日期|
|
|
|
|beginTime|string|是|20150306|周报:开始日期|
|
|
|
|endTime|string|是|20150308|周报:结束日期|
|
|
|
|productSkn|int|是|1222|skn|
|
|
|
|productSkc|int|是|1222|skc|
|
|
|
|productSku|int|是|1222|sku|
|
|
|
|factoryCode|string|是|234234|出厂编号|
|
|
|
|sortId|int|是|12|产品分类 |
|
|
|
|shopId|int|否|17|是|店铺ID |
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
请求示例
|
|
|
http://127.0.0.1:8088/platform/SellerProductController/addProduct
|
|
|
|
|
|
## 请求样例数据
|
|
|
``` json
|
|
|
请求样例:
|
|
|
{"productName":"商品名", "brandId":4, "maxSortId":12, "middleSortId" : 144, "smallSortId":145 , "gender" : "1", "retailPrice":"44.44", "salesPrice": "33.33",
|
|
|
"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}]"
|
|
|
}
|
|
|
正常返回:
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": [],
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": "添加成功"
|
|
|
}
|
|
|
异常返回:
|
|
|
{
|
|
|
"code": 1001,
|
|
|
"data": ["错误一", "错误二"],
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": "参数校验错误"
|
|
|
}
|
|
|
|
|
|
``` |
|
|
\ No newline at end of file |
...
|
...
|
|