| | |
| | | @GetMapping("/tree") |
| | | @ApiOperationSupport(order = 5) |
| | | @ApiOperation(value = "树形结构", notes = "树形结构") |
| | | public R<List<DictBizVO>> tree() { |
| | | List<DictBizVO> tree = dictService.tree(); |
| | | public R<List<DictBizVO>> tree(@RequestParam(value = "code", required = false) String code) { |
| | | List<DictBizVO> tree = dictService.tree(code); |
| | | return R.data(tree); |
| | | } |
| | | |
| | |
| | | @ApiOperationSupport(order = 8) |
| | | @ApiOperation(value = "获取字典", notes = "获取字典") |
| | | public R<List<DictBiz>> dictionary(String code) { |
| | | List<DictBiz> tree = dictService.getList(code); |
| | | List<DictBiz> tree = dictService.getList(code,null); |
| | | return R.data(tree); |
| | | } |
| | | |
| | |
| | | @ApiOperationSupport(order = 9) |
| | | @ApiOperation(value = "获取字典树", notes = "获取字典树") |
| | | public R<List<DictBizVO>> dictionaryTree(String code) { |
| | | List<DictBiz> tree = dictService.getList(code); |
| | | List<DictBiz> tree = dictService.getList(code,null); |
| | | return R.data(DictBizWrapper.build().listNodeVO(tree)); |
| | | } |
| | | |