| | |
| | | * @param pageNum 页码 |
| | | * @param pageSize 每页显示条数 |
| | | */ |
| | | @RequiresPermissions("system_site") |
| | | @RequiresPermissions("prize") |
| | | @ApiOperation(value = "奖品分页查询列表", tags = {"后台-系统设置-奖品管理"}) |
| | | @GetMapping(value = "/page") |
| | | @ApiImplicitParams({ |
| | |
| | | * |
| | | * @param id 奖品id |
| | | */ |
| | | @RequiresPermissions("system_site") |
| | | @RequiresPermissions("prize") |
| | | @ApiOperation(value = "奖品详情", tags = {"后台-系统设置-奖品管理"}) |
| | | @GetMapping(value = "/detail") |
| | | @ApiImplicitParams({ |
| | |
| | | * |
| | | * @param prize 奖品信息 |
| | | */ |
| | | @RequiresPermissions("system_site") |
| | | @RequiresPermissions("prize") |
| | | @ApiOperation(value = "新增奖品", tags = {"后台-系统设置-奖品管理"}) |
| | | @PostMapping(value = "/save") |
| | | public R<String> save(@RequestBody Prize prize) { |
| | |
| | | * |
| | | * @param prize 奖品信息 |
| | | */ |
| | | @RequiresPermissions("system_site") |
| | | @RequiresPermissions("prize") |
| | | @ApiOperation(value = "编辑奖品", tags = {"后台-系统设置-奖品管理"}) |
| | | @PostMapping(value = "/update") |
| | | public R<String> update(@RequestBody Prize prize) { |
| | |
| | | * |
| | | * @param ids 奖品id拼接 |
| | | */ |
| | | @RequiresPermissions("system_site") |
| | | @RequiresPermissions("prize") |
| | | @ApiOperation(value = "批量删除奖品", tags = {"后台-系统设置-奖品管理"}) |
| | | @GetMapping(value = "/batchDelete") |
| | | @ApiImplicitParams({ |
| | |
| | | .orderByDesc(Prize::getCreateTime).list()); |
| | | } |
| | | |
| | | /** |
| | | * 奖品详情 -- 远程调用 |
| | | */ |
| | | @GetMapping(value = "/prizeDetail") |
| | | public R<Prize> prizeDetail(@RequestParam("id") String id) { |
| | | return R.ok(prizeService.lambdaQuery().eq(Prize::getIsDelete, 0) |
| | | .eq(Prize::getId, id).one()); |
| | | } |
| | | |
| | | } |