提交 ec616dfc 编写于 作者: zhouweidong's avatar zhouweidong

UAA登录

上级 f0878a49
...@@ -3,14 +3,16 @@ TARGET=PSSYSTEM ...@@ -3,14 +3,16 @@ TARGET=PSSYSTEM
</#ibiztemplate> </#ibiztemplate>
package ${pub.getPKGCodeName()}.util.client; package ${pub.getPKGCodeName()}.util.client;
import com.alibaba.fastjson.JSONObject;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import java.util.Map;
import java.util.Set;
@Component @Component
public class IBZOUFallback implements IBZOUFeignClient { public class IBZOUFallback implements IBZOUFeignClient {
@Override @Override
public JSONObject getOrgInfo(String loginName) { public Map<String, Set<String>> getOUMapsByUserId(String userId) {
return null; return null;
} }
} }
...@@ -3,20 +3,22 @@ TARGET=PSSYSTEM ...@@ -3,20 +3,22 @@ TARGET=PSSYSTEM
</#ibiztemplate> </#ibiztemplate>
package ${pub.getPKGCodeName()}.util.client; package ${pub.getPKGCodeName()}.util.client;
import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient; import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PathVariable;
@FeignClient(value = "ibzou",fallback = IBZOUFallback.class) import java.util.Map;
import java.util.Set;
@FeignClient(value = "ibzou-api",fallback = IBZOUFallback.class)
public interface IBZOUFeignClient public interface IBZOUFeignClient
{ {
/** /**
* ou中获取当前上下级组织、部门信息 * ou中获取当前上下级组织、部门信息
* @param loginName 登录名 * @param userId
* @return * @return
*/ */
@GetMapping(value = "/ibzou/org/{loginname}") @GetMapping("/ibzemployees/{userId}/oumaps")
JSONObject getOrgInfo(@PathVariable("loginname") String loginName); Map<String, Set<String>> getOUMapsByUserId(@PathVariable("userId") String userId);
} }
...@@ -9,7 +9,7 @@ import org.springframework.cloud.openfeign.FeignClient; ...@@ -9,7 +9,7 @@ import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import java.util.Map; import java.util.Map;
@FeignClient(value = "ibzuaa",fallback = IBZUAAFallback.class) @FeignClient(value = "ibzuaa-api",fallback = IBZUAAFallback.class)
public interface IBZUAAFeignClient public interface IBZUAAFeignClient
{ {
/** /**
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册