| | |
| | | import com.ruoyi.other.api.factory.GoodsClientFallbackFactory; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.util.List; |
| | |
| | | */ |
| | | @PostMapping("/goods/getGoodsById") |
| | | R<Goods> getGoodsById(@RequestParam("id") Integer id); |
| | | |
| | | |
| | | @PostMapping("/goods/getGoodsByIds") |
| | | R<List<Goods>> getGoodsById(@RequestParam("ids") String[] ids); |
| | | |
| | | |
| | | /** |
| | | * 编辑商品信息 |
| | | * @param goods |
| | | * @return |
| | | */ |
| | | @PostMapping("/goods/editGoods") |
| | | R editGoodsList(@RequestBody List<Goods> goods); |
| | | } |