44323
2024-05-16 80870e154d7755c36cdb345147532c131858e270
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);
}