Commit 3cf04651 by XiaHou

权星相关接口修复

parent f38af83e
...@@ -69,4 +69,27 @@ public class PmsProductController { ...@@ -69,4 +69,27 @@ public class PmsProductController {
} }
return CommonResult.failed(res.getMsg()); return CommonResult.failed(res.getMsg());
} }
@ApiOperation("权星小程序_创建商品")
@RequestMapping(value = "/addProduct", method = RequestMethod.POST)
@ResponseBody
public CommonResult addProduct(@RequestBody PmsProductRequestParam pmsProductRequestParam){
ResultMsg res = this.pmsProductService.addProduct(pmsProductRequestParam);
if(res.isFlag()){
return CommonResult.success(null,res.getMsg());
}
return CommonResult.failed(res.getMsg());
}
@ApiOperation("权星后台_修改商品后保存操作 如果sku有变动则需传入pmsProductSkuValueList以及pmsSkuStockList 没有变动则不需传")
@RequestMapping(value = "/update", method = RequestMethod.POST)
@ResponseBody
//@PreAuthorize("hasAuthority('pms:product:update')")
public CommonResult update(@RequestBody PmsProductRequestParam pmsProductRequestParam) {
ResultMsg res = pmsProductService.updateProduct(pmsProductRequestParam);
if(res.isFlag()){
return CommonResult.success(null,res.getMsg());
}
return CommonResult.failed(res.getMsg());
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment