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.TRepairShopToUserFallbackFactory;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
@FeignClient(contextId = "tRepairShopToUserClient", value = ServiceNameConstants.MANAGEMENT_SERVICE, fallbackFactory = TRepairShopToUserFallbackFactory.class)
|
|
public interface TRepairShopToUserClient {
|
/**
|
* 根据用户id获取修理厂id
|
*/
|
@ApiOperation(value = "通过userId查询对应修理厂Id")
|
@GetMapping("/repairShopToUser/selectByUserId/{userId}")
|
public R<Integer> selectByUserId(@PathVariable("userId") Long userId);
|
}
|