| | |
| | | |
| | | private final ICombinationService combinationService; |
| | | |
| | | private final IMdmCountConfigService mdmCountConfigService; |
| | | |
| | | @Override |
| | | @GetMapping(MENU) |
| | | public R<Menu> getMenu(Long id) { |
| | | return R.data(menuService.getById(id)); |
| | | } |
| | | |
| | | /** |
| | | * 根据code查询菜单信息 |
| | | * @param codes |
| | | * @return |
| | | */ |
| | | @Override |
| | | @GetMapping(MENU_BY_CODES) |
| | | public R<List<Menu>> getMenuByCodes(List<String> codes) { |
| | | return R.data(menuService.getMenuByCodes(codes)); |
| | | } |
| | | |
| | | @Override |
| | | @GetMapping(MENU_BUTTON) |
| | | public R<List<Menu>> getMenuButtonByType(String btmType) { |
| | |
| | | return R.data(combinationService.getRegexList(combinationIds)); |
| | | } |
| | | |
| | | @Override |
| | | @GetMapping(MDM_COUNT_CONFIG) |
| | | public R<MdmCountConfig> getMdmCountConfig (String userId) { |
| | | return R.data(mdmCountConfigService.getMdmCountConfig(userId)); |
| | | } |
| | | |
| | | } |