|
@@ -35,7 +35,7 @@ public class GoodsController {
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
public String addGoods(@RequestBody GoodsBean goodsBean) {
|
|
public String addGoods(@RequestBody GoodsBean goodsBean) {
|
|
|
ResponseResult<String> responseResult = new ResponseResult<String>();
|
|
ResponseResult<String> responseResult = new ResponseResult<String>();
|
|
|
- responseResult.setMessage("新增商品失败");
|
|
|
|
|
|
|
+ responseResult.setMessage("操作失败");
|
|
|
|
|
|
|
|
if (goodsBean == null) {
|
|
if (goodsBean == null) {
|
|
|
return JSON.toJSONString(responseResult);
|
|
return JSON.toJSONString(responseResult);
|
|
@@ -48,9 +48,9 @@ public class GoodsController {
|
|
|
return JSON.toJSONString(responseResult);
|
|
return JSON.toJSONString(responseResult);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- responseResult.setContent("新增商品成功");
|
|
|
|
|
|
|
+ responseResult.setContent("操作成功");
|
|
|
responseResult.setCode(ResultCode.SUCCESS);
|
|
responseResult.setCode(ResultCode.SUCCESS);
|
|
|
- responseResult.setMessage("新增商品成功");
|
|
|
|
|
|
|
+ responseResult.setMessage("操作成功");
|
|
|
return JSON.toJSONString(responseResult);
|
|
return JSON.toJSONString(responseResult);
|
|
|
}
|
|
}
|
|
|
|
|
|