| | |
| | | import com.doumee.dao.business.model.dto.BatchDisableDTO; |
| | | import com.doumee.dao.business.model.dto.GoodCreatePlatRequest; |
| | | import com.doumee.dao.business.model.dto.GoodsRequest; |
| | | import com.doumee.service.CateParamSelectService; |
| | | import com.doumee.service.business.GoodsService; |
| | | import io.swagger.annotations.*; |
| | | import org.apache.shiro.SecurityUtils; |
| | |
| | | |
| | | @Autowired |
| | | private GoodsService goodsService; |
| | | @Autowired |
| | | private CateParamSelectService cateParamSelectService; |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("新建") |
| | |
| | | @PostMapping("/companyCreate") |
| | | // @RequiresPermissions("business:goods:create") |
| | | public ApiResponse companyCreate(@RequestBody Goods goods) { |
| | | return ApiResponse.success(goodsService.companyCreate(goods)); |
| | | goodsService.companyCreate(goods); |
| | | cateParamSelectService.dealGroupVals(goods.getCompanyId()); |
| | | return ApiResponse.success("操作成功"); |
| | | } |
| | | |
| | | @PreventRepeat |