Pu Zhibing
5 天以前 3244b550596e0330031b3f4547356927df83b0ad
ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/feignClient/GoodsClient.java
@@ -8,6 +8,9 @@
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import java.util.List;
/**
 * @author zhibing.pu
@@ -23,4 +26,20 @@
    */
   @PostMapping("/t-goods/getGoodsById/{id}")
   R<TGoods> getGoodsById(@PathVariable("id") Integer id);
   /**
    * 远程调用 根据商品名称查询商品ids
    * @param name
    * @return
    */
   @PostMapping("/t-goods/getGoodsIdsByName/{name}")
   public R<List<Integer>> getGoodsIdsByName(@PathVariable("name")String name);
   /**
    * 修改商品
    * @param goods
    * @return
    */
   @PostMapping("/t-goods/updateGoods")
   R updateGoods(@RequestBody TGoods goods);
}