package com.ruoyi.goods.controller.inner;
|
|
|
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>
|
* 香型表 前端控制器
|
* </p>
|
*
|
* @author mitao
|
* @since 2024-05-16
|
*/
|
@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);
|
|
}
|
|
}
|