| | |
| | | import com.ruoyi.goods.service.IGoodsSeriesService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import lombok.RequiredArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.validation.annotation.Validated; |
| | |
| | | @RestController |
| | | @RequiredArgsConstructor |
| | | @RequestMapping("/mgt/goods-series") |
| | | @Api(value = "管理后台商品系列相关接口", tags = {"管理后台接口"}) |
| | | @Api(value = "管理后台商品系列相关接口", tags = {"管理后台-商品系列相关接口"}) |
| | | public class MgtGoodsSeriesController { |
| | | |
| | | private final IGoodsSeriesService goodsSeriesService; |
| | |
| | | */ |
| | | @ApiOperation(value = "删除商品香型", notes = "删除商品香型") |
| | | @DeleteMapping("/{id}") |
| | | public R<Void> deleteGoodsSeries(@PathVariable("id") Long id) { |
| | | goodsSeriesService.removeById(id); |
| | | public R<Void> deleteGoodsSeries( |
| | | @ApiParam(name = "id", value = "商品香型id", required = true) @PathVariable("id") Long id) { |
| | | goodsSeriesService.delete(id); |
| | | return R.ok(); |
| | | } |
| | | } |