IBZOUFeignClient.java.ftl 646 字节
Newer Older
ibizdev's avatar
ibizdev committed
1 2 3 4 5 6 7 8 9
<#ibiztemplate>
TARGET=PSSYSTEM
</#ibiztemplate>
package ${pub.getPKGCodeName()}.util.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

zhouweidong's avatar
zhouweidong committed
10 11 12 13
import java.util.Map;
import java.util.Set;

@FeignClient(value = "ibzou-api",fallback = IBZOUFallback.class)
ibizdev's avatar
ibizdev committed
14 15 16 17
public interface IBZOUFeignClient
{
	/**
	 * ou中获取当前上下级组织、部门信息
zhouweidong's avatar
zhouweidong committed
18
	 * @param userId
ibizdev's avatar
ibizdev committed
19 20
	 * @return
	 */
zhouweidong's avatar
zhouweidong committed
21 22 23
	@GetMapping("/ibzemployees/{userId}/oumaps")
	Map<String, Set<String>> getOUMapsByUserId(@PathVariable("userId") String userId);

ibizdev's avatar
ibizdev committed
24
}