HashMap:相当于 iOS 里面的 NSMutableDictionary
List :相当于 iOS 里面的 NSMutableArray
List data = new ArrayList<>();
Map one = new HashMap<>()
one.put("color", "#ff8804");
one.put("title", "真功夫");
one.put("jumpTo", "https://www.baidu.com");
one.put("imgUrl", "https://www.baidu.com.png");
one.put("nativeId", "0");
data.add(one);
one = new HashMap<>();
one.put("color", "#ff8804");
one.put("title", "2017重大人事动态");
one.put("jumpTo", "https://www.baidu.com");
one.put("imgUrl", "https://www.baidu.com.png");
one.put("nativeId", "0");
data.add(one);
return new ResponseEntity(new BannerModel(0,"success",data), HttpStatus.OK );
网友评论