| | |
| | | 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.GoodsCategory; |
| | | import com.ruoyi.goods.service.IGoodsCategoryService; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @RequestMapping("/goods-category") |
| | | public class GoodsCategoryController { |
| | | |
| | | @Resource |
| | | private IGoodsCategoryService iGoodsCategoryService; |
| | | @InnerAuth |
| | | @PostMapping("/getCategoryOne") |
| | | @ResponseBody |
| | | public R<GoodsCategory> getCategoryOne(@RequestBody Long categoryId) { |
| | | GoodsCategory goodsCategoryOne=iGoodsCategoryService.getById(categoryId); |
| | | return R.ok(goodsCategoryOne); |
| | | |
| | | } |
| | | |
| | | } |