| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | 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.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | |
| | | @Slf4j |
| | | public class MdmSystemController { |
| | | private final ISysClient sysClient; |
| | | |
| | | private final IDictClient dictClient; |
| | | @GetMapping("/dept/lazy-list") |
| | | @ApiOperationSupport(order = 2) |
| | | @Operation(summary = "懒加载部门列表") |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | @Operation(summary = "字典列表") |
| | | @GetMapping("/dict/dictionary") |
| | | public R<List<Dict>> dictionary(@Parameter(description = "字典编码") String code) { |
| | | return dictClient.getList(code); |
| | | } |
| | | } |