|
@@ -71,7 +71,7 @@ public class RedisController {
|
|
|
|
|
|
@PostMapping("/getList")
|
|
|
public ResponseBodyVO<Map<String,String>> getList(@RequestBody List<String> keyList) {
|
|
|
- Map map = new HashMap();
|
|
|
+ Map<String,String> map = new HashMap<>();
|
|
|
if(keyList != null && keyList.size() > 0){
|
|
|
for (String key : keyList) {
|
|
|
String value = redisTemplate.opsForValue().get(key);
|
|
@@ -83,7 +83,7 @@ public class RedisController {
|
|
|
|
|
|
@PostMapping("/getDictLists")
|
|
|
public ResponseBodyVO<Map<String,String>> getDictLists(@RequestBody List<String> keyList) {
|
|
|
- Map map = new HashMap();
|
|
|
+ Map<String,String> map = new HashMap<>();
|
|
|
if(keyList != null && keyList.size() > 0){
|
|
|
for (String key : keyList) {
|
|
|
String value = redisTemplate.opsForValue().get(DictConstants.BASE_KEY + DictConstants.LIST_KEY + key.toUpperCase());
|
|
@@ -95,7 +95,7 @@ public class RedisController {
|
|
|
|
|
|
@PostMapping("/getDictMaps")
|
|
|
public ResponseBodyVO<Map<String,String>> getDictMaps(@RequestBody List<String> keyList) {
|
|
|
- Map map = new HashMap();
|
|
|
+ Map<String,String> map = new HashMap<>();
|
|
|
if(keyList != null && keyList.size() > 0){
|
|
|
for (String key : keyList) {
|
|
|
String value = redisTemplate.opsForValue().get(DictConstants.BASE_KEY + DictConstants.MAP_KEY + key.toUpperCase());
|