glj-代码提交

This commit is contained in:
glj 2023-04-26 18:31:39 +08:00
parent 6704340b46
commit e9d6776631
2 changed files with 3 additions and 2 deletions

View File

@ -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);
} }
} }