package com.ruoyi.management.api.feignClient;
|
|
|
import com.ruoyi.common.core.constant.ServiceNameConstants;
|
import com.ruoyi.common.core.domain.R;
|
import com.ruoyi.management.api.factory.TCompanyRepairShopFallbackFactory;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.PathVariable;
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import java.util.List;
|
|
/**
|
* 门店服务
|
*/
|
@FeignClient(contextId = "tCompanyRepairShopClient", value = ServiceNameConstants.MANAGEMENT_SERVICE, fallbackFactory = TCompanyRepairShopFallbackFactory.class)
|
public interface TCompanyRepairShopClient {
|
/**
|
* 通过公司id查询修理厂id集合
|
* @param id
|
* @return
|
*/
|
@PostMapping("/repairShop/companyQueryRepairShopList/{id}")
|
R<List<Integer>> companyQueryRepairShopList(@PathVariable("id") Long id);
|
}
|