class CommodityStoreController {

    @Autowired
    private CommodityService commodityService;

    @ApiOperation(value = "获取店铺直播商品列表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "商品名称", dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "auditStatus", value = "直播商品状态", dataType = "String", paramType = "query")
    })
    @GetMapping
    public ResultMessage<IPage<CommodityVO>> page(String auditStatus, String name, PageVO pageVO) {
        return ResultUtil.data(commodityService.commodityList(pageVO, name, auditStatus));
    }

    @ApiOperation(value = "添加店铺直播商品")
    @ApiImplicitParam(name = "commodityList", value = "直播商品列表", paramType = "body", allowMultiple = true, dataType = "Commodity")
    @PostMapping
    public ResultMessage<Object> addCommodity(@RequestBody List<Commodity> commodityList) {
        if (commodityService.addCommodity(commodityList)) {
            return ResultUtil.success(ResultCode.SUCCESS);
        }
        throw new ServiceException(ResultCode.ERROR);
    }

    @ApiOperation(value = "删除店铺直播商品")
    @ApiImplicitParam(name = "goodsId", value = "直播商品ID", dataType = "String", paramType = "path")
    @DeleteMapping("/{goodsId}")
    public ResultMessage<Object> delete(@PathVariable String goodsId) {<FILL_FUNCTION_BODY>}
}

        if (commodityService.deleteCommodity(goodsId)) {
            return ResultUtil.success(ResultCode.SUCCESS);
        }
        throw new ServiceException(ResultCode.ERROR);
    
<no_super_class>