| | |
| | | package org.springblade.system.feign; |
| | | |
| | | import org.springblade.core.launch.constant.AppConstant; |
| | | import org.springblade.core.secure.BladeUser; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.system.pojo.entity.*; |
| | | import org.springblade.system.pojo.vo.DeptVO; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | |
| | | String DEPT_NAME = API_PREFIX + "/dept-name"; |
| | | String DEPT_NAMES = API_PREFIX + "/dept-names"; |
| | | String DEPT_CHILD = API_PREFIX + "/dept-child"; |
| | | String DEPT_TREE = API_PREFIX + "/dept-tree"; |
| | | String POST = API_PREFIX + "/post"; |
| | | String POST_IDS = API_PREFIX + "/post-ids"; |
| | | String POST_IDS_FUZZY = API_PREFIX + "/post-ids-fuzzy"; |
| | |
| | | @GetMapping(DEPT) |
| | | R<Dept> getDept(@RequestParam("id") Long id); |
| | | |
| | | @GetMapping(DEPT_TREE) |
| | | R<List<DeptVO>> deptTree(String tenantId); |
| | | /** |
| | | * 获取部门id |
| | | * |