| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- package com.dk.mdm.controller.mst;
- import com.dk.common.response.ResponseResultVO;
- import com.dk.mdm.model.pojo.mst.GoodsSeries;
- import com.dk.common.controller.BaseController;
- import com.dk.common.service.BaseService;
- import org.springframework.web.bind.annotation.PathVariable;
- import org.springframework.web.bind.annotation.PostMapping;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.RestController;
- import io.swagger.annotations.Api;
- import com.dk.mdm.service.mst.GoodsSeriesService;
- @Api(tags = "商品系列API接口")
- @RestController
- @RequestMapping("/mst/goodsSeries")
- public class GoodsSeriesController{
- public BaseService<GoodsSeries> getService() {
- return goodsSeriesService;
- }
- @Autowired
- private GoodsSeriesService goodsSeriesService;
- /**
- * @desc : 停用
- * @author : 于继渤
- * @date : 2023/1/4 9:39
- */
- @PostMapping("disable/{id}")
- public ResponseResultVO<Boolean> disable(@PathVariable String id) {
- return this.getService().disable(id);
- }
- /**
- * @desc : 启用
- * @author : 于继渤
- * @date : 2023/1/4 9:39
- */
- @PostMapping("enable/{id}")
- public ResponseResultVO<Boolean> enable(@PathVariable String id) {
- return this.getService().enable(id);
- }
- }
|