| | |
| | | import com.ruoyi.admin.entity.Prize; |
| | | import com.ruoyi.admin.service.PrizeService; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.security.annotation.RequiresPermissions; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | |
| | | * @param pageNum 页码 |
| | | * @param pageSize 每页显示条数 |
| | | */ |
| | | @RequiresPermissions("system_site") |
| | | @ApiOperation(value = "奖品分页查询列表", tags = {"后台-系统设置-奖品管理"}) |
| | | @GetMapping(value = "/page") |
| | | @ApiImplicitParams({ |
| | |
| | | * |
| | | * @param id 奖品id |
| | | */ |
| | | @RequiresPermissions("system_site") |
| | | @ApiOperation(value = "奖品详情", tags = {"后台-系统设置-奖品管理"}) |
| | | @GetMapping(value = "/detail") |
| | | @ApiImplicitParams({ |
| | |
| | | * |
| | | * @param prize 奖品信息 |
| | | */ |
| | | @RequiresPermissions("system_site") |
| | | @ApiOperation(value = "新增奖品", tags = {"后台-系统设置-奖品管理"}) |
| | | @PostMapping(value = "/save") |
| | | public R<String> save(@RequestBody Prize prize) { |
| | |
| | | * |
| | | * @param prize 奖品信息 |
| | | */ |
| | | @RequiresPermissions("system_site") |
| | | @ApiOperation(value = "编辑奖品", tags = {"后台-系统设置-奖品管理"}) |
| | | @PostMapping(value = "/update") |
| | | public R<String> update(@RequestBody Prize prize) { |
| | |
| | | * |
| | | * @param ids 奖品id拼接 |
| | | */ |
| | | @RequiresPermissions("system_site") |
| | | @ApiOperation(value = "批量删除奖品", tags = {"后台-系统设置-奖品管理"}) |
| | | @GetMapping(value = "/batchDelete") |
| | | @ApiImplicitParams({ |