|
|
|
@ -19,6 +19,7 @@ package org.springblade.system.feign;
|
|
|
|
|
import org.springblade.core.launch.constant.AppConstant; |
|
|
|
|
import org.springblade.core.mp.support.BladePage; |
|
|
|
|
import org.springblade.system.entity.Dept; |
|
|
|
|
import org.springblade.system.vo.DeptVO; |
|
|
|
|
import org.springframework.cloud.openfeign.FeignClient; |
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
|
import org.springframework.web.bind.annotation.RequestParam; |
|
|
|
@ -60,6 +61,13 @@ public interface IDeptClient {
|
|
|
|
|
@GetMapping(API_PREFIX + "/findNameById") |
|
|
|
|
String findNameById(@RequestParam("deptId") Long deptId); |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 查询部门组织树 |
|
|
|
|
* @return BladePage |
|
|
|
|
*/ |
|
|
|
|
@GetMapping(API_PREFIX + "/getDeptTree") |
|
|
|
|
List<DeptVO> getDeptTree(@RequestParam("tenantId") String tenantId); |
|
|
|
|
|
|
|
|
|
@GetMapping(API_PREFIX + "/findIdByName") |
|
|
|
|
Long findIdByName(@RequestParam("deptName") String deptName); |
|
|
|
|
|
|
|
|
|