|  |  |  | 
|---|
|  |  |  | return ApiResponse.success(categoryService.create(category)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @PreventRepeat | 
|---|
|  |  |  | @ApiOperation("企业新建分类") | 
|---|
|  |  |  | @PostMapping("/companyCreate") | 
|---|
|  |  |  | @RequiresPermissions("business:category:create") | 
|---|
|  |  |  | public ApiResponse companyCreate(@RequestBody Category category) { | 
|---|
|  |  |  | return ApiResponse.success(categoryService.companyCreate(category)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("根据ID删除") | 
|---|
|  |  |  | @GetMapping("/delete/{id}") | 
|---|
|  |  |  | @RequiresPermissions("business:category:delete") | 
|---|
|  |  |  | 
|---|
|  |  |  | @RequiresPermissions("business:category:update") | 
|---|
|  |  |  | public ApiResponse updateById(@RequestBody Category category) { | 
|---|
|  |  |  | categoryService.updateById(category); | 
|---|
|  |  |  | return ApiResponse.success(null); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("企业根据ID修改") | 
|---|
|  |  |  | @PostMapping("/companyUpdateById") | 
|---|
|  |  |  | @RequiresPermissions("business:category:update") | 
|---|
|  |  |  | public ApiResponse companyUpdateById(@RequestBody Category category) { | 
|---|
|  |  |  | categoryService.companyUpdateById(category); | 
|---|
|  |  |  | return ApiResponse.success(null); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | return ApiResponse.success(categoryService.findListForGoods(goodsId)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("企业选择分类列表 - H5") | 
|---|
|  |  |  | @PostMapping("/companyFindList") | 
|---|
|  |  |  | public ApiResponse<List<Category>> companyFindList (@RequestBody Category category) { | 
|---|
|  |  |  | return ApiResponse.success(categoryService.companyFindList(category)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|