| | |
| | | */ |
| | | package org.springblade.system.feign; |
| | | |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.core.secure.BladeUser; |
| | | import org.springblade.core.tenant.annotation.NonDS; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springblade.system.pojo.entity.*; |
| | | import org.springblade.system.pojo.vo.DeptVO; |
| | | import org.springblade.system.service.*; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | |
| | | public R<String> getDeptIds(String tenantId, String deptNames) { |
| | | return R.data(deptService.getDeptIds(tenantId, deptNames)); |
| | | } |
| | | |
| | | @Override |
| | | public R<List<DeptVO>> deptTree(String tenantId) { |
| | | List<DeptVO> tree = deptService.tree(tenantId); |
| | | return R.data(tree); |
| | | } |
| | | @Override |
| | | public R<String> getDeptIdsByFuzzy(String tenantId, String deptNames) { |
| | | return R.data(deptService.getDeptIdsByFuzzy(tenantId, deptNames)); |