@Override public Map<String, String> queryByIndexKey(String indexKey, Integer size) { if (size == null) { size = MAX_SIZE; } List<Tags> list = tagsCategoryCollectionDao.queryByIndexKey(indexKey, size); Map<String, String> map = new HashMap<String, String>(); for (Tags t : list) { map.put(t.getTags(), t.getTagsEncode()); } return map; }
@Override public Map<String, String> queryByCode(String code, Integer depth, Integer size) { if (size == null) { size = MAX_SIZE; } if (depth == null) { depth = 0; } List<Tags> list = tagsCategoryCollectionDao.queryByCode(code, depth, size); Map<String, String> map = new HashMap<String, String>(); for (Tags t : list) { map.put(t.getTags(), t.getTagsEncode()); } return map; }