| | |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springblade.core.secure.BladeUser; |
| | | import org.springblade.core.tenant.annotation.NonDS; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.system.feign.IDictClient; |
| | | import org.springblade.system.feign.ISysClient; |
| | | import org.springblade.system.pojo.entity.Dept; |
| | | import org.springblade.system.pojo.entity.Dict; |
| | | import org.springblade.system.pojo.vo.DeptVO; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | |
| | | |
| | | } |
| | | |
| | | @GetMapping("/dept/tree") |
| | | @ApiOperationSupport(order = 2) |
| | | @Operation(summary = "部门树") |
| | | public R<List<DeptVO>> deptTree(BladeUser bladeUser) { |
| | | try { |
| | | return sysClient.deptTree(bladeUser.getTenantId()); |
| | | }catch (Exception e){ |
| | | return R.fail(e.getMessage()); |
| | | } |
| | | |
| | | } |
| | | |
| | | @Operation(summary = "字典列表") |
| | | @GetMapping("/dict/dictionary") |
| | | public R<List<Dict>> dictionary(@Parameter(description = "字典编码") String code) { |