package com.ruoyi.other.api.feignClient;
|
|
import com.ruoyi.common.core.constant.ServiceNameConstants;
|
import com.ruoyi.common.core.domain.R;
|
import com.ruoyi.other.api.domain.Shop;
|
import com.ruoyi.other.api.factory.StoreFallbackFactory;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
/**
|
* 后台订单服务
|
* @author ruoyi
|
*/
|
@FeignClient(contextId = "StoreClient", value = ServiceNameConstants.OTHER_SERVICE, fallbackFactory = StoreFallbackFactory.class)
|
public interface StoreClient {
|
@GetMapping(value = "/shop/getDetailById")
|
R<Shop> getStoreById(@RequestParam("id") Integer id);
|
|
|
}
|