| | |
| | | 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.GoodsBrand; |
| | | import com.ruoyi.goods.service.IGoodsBrandService; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @RequiredArgsConstructor |
| | | public class GoodsBrandController { |
| | | |
| | | @Resource |
| | | private IGoodsBrandService iGoodsBrandService; |
| | | @InnerAuth |
| | | @PostMapping("/getBrandOne") |
| | | @ResponseBody |
| | | public R<GoodsBrand> getBrandOne(@RequestBody Long brandId) { |
| | | GoodsBrand goodsBrandOne=iGoodsBrandService.getById(brandId); |
| | | return R.ok(goodsBrandOne); |
| | | |
| | | } |
| | | |
| | | } |