| | |
| | | */ |
| | | 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; |
| | | import com.vci.ubcs.system.vo.RoleVO; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.core.tenant.annotation.NonDS; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | |
| | | private final IMdmCountConfigService mdmCountConfigService; |
| | | |
| | | private final IClassifyAuthService classifyAuthService; |
| | | |
| | | @Override |
| | | @GetMapping(MENU) |
| | | public R<Menu> getMenu(Long id) { |
| | |
| | | */ |
| | | @Override |
| | | @GetMapping(MENU_BY_CODES) |
| | | public R<List<Menu>> getMenuByCodes(List<String> codes) { |
| | | return R.data(menuService.getMenuByCodes(codes)); |
| | | public R<List<Menu>> getMenuByCodes(List<String> codes,Long userId) { |
| | | return R.data(menuService.getMenuByCodes(codes,userId)); |
| | | } |
| | | |
| | | @Override |
| | | @GetMapping(MENU_BUTTON) |
| | | public R<List<Menu>> getMenuButtonByType(String btmType) { |
| | | return R.data(menuService.getMenuButtonByType(btmType)); |
| | | 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); |
| | | } |
| | | |
| | | } |