44323
2024-05-16 8d90d3f271a9c28bf46f755b1561f07c163d8823
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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);
}