孔祥富
2021-03-09 0532f8fe46864a09a0febeb6550aea2de42a4ab8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package cc.mrbird.febs.server.hr.feign;
 
import cc.mrbird.febs.common.core.entity.FebsResponse;
import cc.mrbird.febs.common.core.entity.constant.FebsServerConstant;
import cc.mrbird.febs.common.core.entity.system.Dept;
import cc.mrbird.febs.common.core.entity.system.DicItem;
import cc.mrbird.febs.server.hr.feign.fallback.RemoteDeptServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
 
import java.util.List;
 
/**
 * name: IRemoteDeptService
 * package: cc.mrbird.febs.server.hr.feign
 * description: 从系统管理微服务中获取部门信息
 * date: 2021-01-30 12:46
 *
 * @author luoyibo
 * @version 0.1
 * @since JDK 1.8
 */
@FeignClient(value = FebsServerConstant.FEBS_SERVER_SYSTEM, contextId = "dicItemServiceClient")
public interface IRemoteDicItemService {
    @GetMapping("dicItem/types/{dictType}")
    List<DicItem> dictType(@PathVariable String dictType);
 
    @GetMapping("dept/userRightDepts")
    String userRightDepts();
 
    @GetMapping("dicItem/getAllDicitemsAll")
    List<DicItem> getAllDicitemsAll();
}