package com.ruoyi.zhdd.feign;

import com.ruoyi.zhdd.domain.GatewayUserDetail;
import com.ruoyi.zhdd.feign.fallback.FeignUserManageFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description: 四维用户接口
 * @Author: huangcheng
 * @Date: 2022/1/12
 * @Version V1.0
 */
@FeignClient(value = "tpbd-usermanager", fallback = FeignUserManageFallback.class)
public interface FeignUserManageService {

    /**
     * 用户详情
     *
     * @param userId
     */
    @GetMapping("/user/detail")
    GatewayUserDetail userDetail(@RequestParam(value = "userId") String userId);

}
