| | |
| | | */ |
| | | package com.vci.ubcs.system.feign; |
| | | |
| | | import com.vci.ubcs.system.dto.ClassifyAuthDTO; |
| | | import com.vci.ubcs.system.entity.*; |
| | | import com.vci.ubcs.system.service.*; |
| | | import com.vci.ubcs.system.vo.DeptVO; |
| | |
| | | |
| | | private final IMdmCountConfigService mdmCountConfigService; |
| | | |
| | | private final IClassifyAuthService classifyAuthService; |
| | | |
| | | @Override |
| | | @GetMapping(MENU) |
| | | public R<Menu> getMenu(Long id) { |
| | |
| | | |
| | | @Override |
| | | @GetMapping(MENU_BUTTON) |
| | | public R<List<Menu>> getMenuButtonByType(String btmType) { |
| | | return R.data(menuService.getMenuButtonByType(btmType, AuthUtil.getUserId())); |
| | | public R<List<Menu>> getMenuButtonByType(String classifyId,String btmType,String authType) { |
| | | return R.data(menuService.getMenuButtonByType(classifyId,btmType,authType)); |
| | | } |
| | | |
| | | @Override |
| | |
| | | return R.data(mdmCountConfigService.getMdmCountConfig(userId)); |
| | | } |
| | | |
| | | @GetMapping(GETVIEWCLASSIFY) |
| | | public R<List<String>> getViewClassByRoleIds(List<String> roleIds,String authType,String buttonCode,String menuCode){ |
| | | return R.data(classifyAuthService.getViewClassByRoleIds(roleIds,authType,buttonCode,menuCode)); |
| | | } |
| | | |
| | | @PostMapping(SAVEADDCLASSIFYDEFAULTAUTH) |
| | | public R saveAddClassifyDefaultAuth(@RequestBody ClassifyAuthDTO classifyAuthDTOS){ |
| | | return classifyAuthService.saveAddClassifyDefaultAuth(classifyAuthDTOS); |
| | | } |
| | | |
| | | } |