获取 大转盘 传参

This commit is contained in:
wangw 2024-12-20 18:16:08 +08:00
parent 18f1bf1f9b
commit e751d9b4cc
1 changed files with 3 additions and 3 deletions

View File

@ -106,12 +106,12 @@ public class DiscSpinningController {
@GetMapping("/app/discSpinning/selectDiscSpinning")
@ApiImplicitParams({
@ApiImplicitParam(name = "type", value = "1 普通转盘 2 周任务转盘 3 月任务转盘", dataTypeClass = String.class, paramType = "body"),
@ApiImplicitParam(name = "source", value = "1 普通转盘 2 周任务转盘 3 月任务转盘", dataTypeClass = Integer.class),
})
@ApiOperation("查询大转盘")
public Result selectDiscSpinning(@RequestParam(required = false, defaultValue = "1") Integer type) {
public Result selectDiscSpinning(@RequestParam(required = false, defaultValue = "1") Integer source) {
return Result.success().put("data", discSpinningService.page(new Page<>(1, 20),
new QueryWrapper<DiscSpinning>().eq("disc_type", type).orderByAsc("disc_type", "odds")));
new QueryWrapper<DiscSpinning>().eq("disc_type", source).orderByAsc("disc_type", "odds")));
}