glj-代码提交
This commit is contained in:
parent
6704340b46
commit
e9d6776631
|
@ -9,6 +9,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
@ -32,6 +33,6 @@ public class WordCloudsController {
|
||||||
@GetMapping("/wordCount")
|
@GetMapping("/wordCount")
|
||||||
public R<Map<String,List<WorldCharts>>> wordCount(@RequestParam Long disasterId){
|
public R<Map<String,List<WorldCharts>>> wordCount(@RequestParam Long disasterId){
|
||||||
Map<String, List<WorldCharts>> stringListMap = service.wordCount(disasterId);
|
Map<String, List<WorldCharts>> stringListMap = service.wordCount(disasterId);
|
||||||
return R.data(service.wordCount(disasterId));
|
return R.data(stringListMap);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue