把获取排行榜的get改为post

This commit is contained in:
teririsaigao 2024-06-18 18:49:18 +08:00
parent 92d868d459
commit 51727600da
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ public class LevelController {
} }
@ApiOperation(value = "分页获取某个排行榜排名") @ApiOperation(value = "分页获取某个排行榜排名")
@GetMapping("/rank-page") @PostMapping("/rank-page")
public R<ScoreInfoPage> getScores(@RequestBody Page page) { public R<ScoreInfoPage> getScores(@RequestBody Page page) {
return R.ok(levelService.getScoreInfo( page.getLevelId(),page.getPage(), page.getSize())); return R.ok(levelService.getScoreInfo( page.getLevelId(),page.getPage(), page.getSize()));
} }