| | |
| | | import com.ruoyi.admin.service.RotateService; |
| | | import com.ruoyi.admin.vo.RotateResultVO; |
| | | 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 pageSize 每页显示条数 |
| | | * @return 封装分页数据 |
| | | */ |
| | | @RequiresPermissions("system_rotate") |
| | | @ApiOperation(value = "轮播图分页查询列表", tags = {"后台-系统设置-轮播图管理"}) |
| | | @GetMapping(value = "/page") |
| | | @ApiImplicitParams({ |
| | |
| | | /** |
| | | * 轮播图列表 |
| | | */ |
| | | @RequiresPermissions("system_rotate") |
| | | @GetMapping(value = "/bannerList") |
| | | public R<List<Rotate>> bannerList() { |
| | | return R.ok(rotateService.lambdaQuery().eq(Rotate::getIsDelete, 0) |
| | |
| | | * @param id 轮播图id |
| | | * @return 封装分页数据 |
| | | */ |
| | | @RequiresPermissions("system_rotate") |
| | | @ApiOperation(value = "轮播图详情", tags = {"后台-系统设置-轮播图管理"}) |
| | | @GetMapping(value = "/detail") |
| | | @ApiImplicitParams({ |
| | |
| | | * @param rotate 轮播图信息 |
| | | * @return 封装分页数据 |
| | | */ |
| | | @RequiresPermissions("system_rotate") |
| | | @ApiOperation(value = "新增轮播图", tags = {"后台-系统设置-轮播图管理"}) |
| | | @PostMapping(value = "/save") |
| | | public R<String> save(@RequestBody Rotate rotate) { |
| | |
| | | * @param rotate 轮播图信息 |
| | | * @return 封装分页数据 |
| | | */ |
| | | @RequiresPermissions("system_rotate") |
| | | @ApiOperation(value = "修改轮播图", tags = {"后台-系统设置-轮播图管理"}) |
| | | @PostMapping(value = "/update") |
| | | public R<String> update(@RequestBody Rotate rotate) { |
| | |
| | | * @param ids 轮播图多条id拼接 |
| | | * @return 封装分页数据 |
| | | */ |
| | | @RequiresPermissions("system_rotate") |
| | | @ApiOperation(value = "批量删除轮播图", tags = {"后台-系统设置-轮播图管理"}) |
| | | @GetMapping(value = "/batchDelete") |
| | | @ApiImplicitParams({ |