| | |
| | | |
| | | import com.lf.server.entity.all.*; |
| | | import com.lf.server.entity.sys.MenuEntity; |
| | | import com.lf.server.helper.StringHelper; |
| | | import com.lf.server.mapper.all.PermsMapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | |
| | | @Override |
| | | public List<ResAuthEntity> selectRes(String uid) { |
| | | if (StringHelper.isEmpty(uid)) { |
| | | return null; |
| | | } |
| | | |
| | | String key = RedisCacheKey.permsResKey(uid); |
| | | Object obj = redisService.get(key); |
| | | if (obj instanceof List<?>) { |
| | |
| | | |
| | | @Override |
| | | public List<MenusAuthEntity> selectMenus(String uid) { |
| | | if (StringHelper.isEmpty(uid)) { |
| | | return null; |
| | | } |
| | | |
| | | String key = RedisCacheKey.permsMenusKey(uid); |
| | | Object obj = redisService.get(key); |
| | | if (obj instanceof List<?>) { |
| | |
| | | |
| | | @Override |
| | | public List<String> selectPerms(String uid) { |
| | | if (StringHelper.isEmpty(uid)) { |
| | | return null; |
| | | } |
| | | |
| | | String key = RedisCacheKey.permsPermsKey(uid); |
| | | Object obj = redisService.get(key); |
| | | if (obj instanceof List<?>) { |
| | |
| | | |
| | | @Override |
| | | public List<PermsAuthEntity> selectPermsEntity(String uid) { |
| | | if (StringHelper.isEmpty(uid)) { |
| | | return null; |
| | | } |
| | | |
| | | String key = RedisCacheKey.permsPermsEntityKey(uid); |
| | | Object obj = redisService.get(key); |
| | | if (obj instanceof List<?>) { |