无关风月
2024-07-04 402aba359adb4b10cfa98ad7fcb424eb55641129
ruoyi-api/ruoyi-api-goods/src/main/java/com/ruoyi/goods/api/feignClient/GoodsClient.java
@@ -6,16 +6,24 @@
import com.ruoyi.goods.api.domain.TGoods;
import com.ruoyi.goods.api.domain.TGoodsType;
import com.ruoyi.goods.api.factory.GoodsFallbackFactory;
import com.ruoyi.goods.api.model.GoodsTypeQuery;
import com.ruoyi.goods.api.model.TGoodsVO;
import com.ruoyi.goods.api.model.*;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
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;
@FeignClient(contextId = "goodsClient", value = ServiceNameConstants.GOODS_SERVICE, fallbackFactory = GoodsFallbackFactory.class)
public interface GoodsClient {
    @PostMapping("/base/goods/confirm1")
     R getGoodsInfo1(@RequestBody OrderDTO dto);
    @PostMapping("/base/goods/getOrderInfo/{id}")
    R<TOrderVO> getOrderInfo(@PathVariable("id")Integer id);
    @PostMapping("/base/goods/listAll1")
    R<PageInfo<TOrderVO>> listAll1(@RequestBody OrderQuery query);
    @PostMapping("/base/goods/listType")
    R<PageInfo<TGoodsType>> listType(@RequestBody GoodsTypeQuery query);
@@ -26,7 +34,7 @@
    @PostMapping("/base/goods/deleteGoodsType/{id}")
    R deleteGoodsType(@PathVariable("id") Integer id);
    @GetMapping("/base/goods/listAll")
    @PostMapping("/base/goods/listAll")
     R<PageInfo<TGoods>> listAll(@RequestBody GoodsTypeQuery query);
    @PostMapping("/base/goods/addGoods")
     R addGoods(@RequestBody TGoods dto);
@@ -42,4 +50,14 @@
    @PostMapping("/base/goods/getGoodsTypeList")
     R<List<TGoodsType>> getGoodsInfo();
    /**
     * 可兑换商品推荐
     *
     * @return 推荐商品信息
     */
    @GetMapping("/base/goods/goodRecommend")
    @ApiOperation(value = "可兑换商品推荐", tags = {"可兑换商品推荐"})
    R<List<TGoodsVO>> goodRecommend();
}