| | |
| | | import org.apache.commons.lang.ObjectUtils; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.cache.annotation.Cacheable; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.*; |
| | |
| | | |
| | | @ApiOperation(value = "根据roleCodes获取对应的权限") |
| | | @SuppressWarnings("unchecked") |
| | | @Cacheable(value = "menu", key ="#roleCodes") |
| | | // @Cacheable(value = "menu", key ="#roleCodes") |
| | | @GetMapping("/{roleCodes}") |
| | | public List<SysMenu> findMenuByRoles(@PathVariable String roleCodes) { |
| | | List<SysMenu> result = null; |