zhanglin8526
2023-05-04 daf1d5e645ba76343f048044405fa08a1573d77a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package com.ruoyi.system.api;
 
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.api.domain.poji.activity.ActivityGoods;
import com.ruoyi.system.api.domain.poji.shop.Shop;
import com.ruoyi.system.api.factory.RemoteUserFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
 
@FeignClient(contextId = "remoteShopService", value = ServiceNameConstants.SHOP_SERVICE, fallbackFactory = RemoteUserFallbackFactory.class)
public interface RemoteShopService {
 
    @PostMapping("/shop/getShop")
    public R<Shop> getShop(@RequestBody Long shopId);
}