44323
2024-05-24 a623f1eb91b1d89872e3582b5747e9d7096ea225
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);
@@ -42,4 +50,14 @@
    @PostMapping("/base/goods/getGoodsTypeList")
     R<List<TGoodsType>> getGoodsInfo();
    /**
     * 可兑换商品推荐
     *
     * @return 推荐商品信息
     */
    @GetMapping("/goodRecommend")
    @ApiOperation(value = "可兑换商品推荐", tags = {"可兑换商品推荐"})
    R<List<TGoodsVO>> goodRecommend();
}