添加或者更新产品文案 websocket测试 POST http://47.102.223.39/production/addOrUpdateProductionDocument 说明 / 示例 添加: curl -H "Accept: application/json" -H "Content-type: application/json" -X POST -d "[{\"type\":1,\"feature\":{\"key1\":\"test\"}},{\"type\":2,\"feature\":{\"key1\":\"test1\"}}]" http://127.0.0.1:3000/production/addOrUpdateProductionDocument 返回值: {"Content":{"Data":[{"index":0,"result":true},{"index":1,"result":true}],"PageInfo":null},"Message":{"code":0,"msg":"success"}} 更新: curl -H "Accept: application/json" -H "Content-type: application/json" -X POST -d "[{\"id\":1,\"type\":1,\"feature\":{\"key1\":\"test1\",\"key2\":\"test2\"}},{\"id\":2,\"type\":2,\"feature\":{\"key1\":\"test2\"}}]" http://127.0.0.1:3000/production/addOrUpdateProductionDocument 返回值: {"Content":{"Data":[{"index":0,"result":true},{"index":1,"result":true}],"PageInfo":null},"Message":{"code":0,"msg":"success"}} 注:index代表请求数组的索引,result对应的每个操作结果 数据库字段说明: 
添加: curl -H "Accept: application/json" -H "Content-type: application/json" -X POST -d "[{\"type\":1,\"feature\":{\"key1\":\"test\"}},{\"type\":2,\"feature\":{\"key1\":\"test1\"}}]" http://127.0.0.1:3000/production/addOrUpdateProductionDocument 返回值: {"Content":{"Data":[{"index":0,"result":true},{"index":1,"result":true}],"PageInfo":null},"Message":{"code":0,"msg":"success"}} 更新: curl -H "Accept: application/json" -H "Content-type: application/json" -X POST -d "[{\"id\":1,\"type\":1,\"feature\":{\"key1\":\"test1\",\"key2\":\"test2\"}},{\"id\":2,\"type\":2,\"feature\":{\"key1\":\"test2\"}}]" http://127.0.0.1:3000/production/addOrUpdateProductionDocument 返回值: {"Content":{"Data":[{"index":0,"result":true},{"index":1,"result":true}],"PageInfo":null},"Message":{"code":0,"msg":"success"}} 注:index代表请求数组的索引,result对应的每个操作结果 数据库字段说明: 