rentaiming
2024-05-28 144eff0ea8fc8b2599d7335edfb2246404600d3d
ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/controller/inner/GoodsFlavorTypeController.java
@@ -1,8 +1,13 @@
package com.ruoyi.goods.controller.inner;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.security.annotation.InnerAuth;
import com.ruoyi.system.api.domain.GoodsFlavorType;
import com.ruoyi.goods.service.IGoodsFlavorTypeService;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
/**
 * <p>
@@ -15,5 +20,15 @@
@RestController
@RequestMapping("/goods-flavor-type")
public class GoodsFlavorTypeController {
    @Resource
    private IGoodsFlavorTypeService iGoodsFlavorTypeService;
    @InnerAuth
    @PostMapping("/getFlavorTypeOne")
    @ResponseBody
    public R<GoodsFlavorType> getFlavorTypeOne(@RequestBody Long flavorTypeId) {
        GoodsFlavorType goodsFlavorTypeOne=iGoodsFlavorTypeService.getById(flavorTypeId);
        return R.ok(goodsFlavorTypeOne);
    }
}