| | |
| | | import com.ruoyi.admin.vo.RecoveryServeResultVO; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.utils.StringUtils; |
| | | 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("serve_recycling_list") |
| | | @ApiOperation(value = "回收服务分页查询列表", tags = {"后台-回收管理-回收服务管理"}) |
| | | @GetMapping(value = "/page") |
| | | @ApiImplicitParams({ |
| | |
| | | } |
| | | |
| | | /** |
| | | * 回收服务列表 |
| | | */ |
| | | @RequiresPermissions("serve_recycling_list") |
| | | @ApiOperation(value = "回收服务列表", tags = {"后台-回收管理-回收服务管理"}) |
| | | @GetMapping(value = "/list") |
| | | public R<List<RecoveryServe>> queryPageList() { |
| | | return R.ok(recoveryServeService.lambdaQuery().eq(RecoveryServe::getIsDelete, 0) |
| | | .orderByDesc(RecoveryServe::getCreateTime).list()); |
| | | } |
| | | |
| | | /** |
| | | * 所属分类列表 |
| | | */ |
| | | @RequiresPermissions("serve_recycling_list") |
| | | @ApiOperation(value = "所属分类列表", tags = {"后台-回收管理-回收服务管理"}) |
| | | @GetMapping(value = "/typeList") |
| | | public R<List<RecoveryClassify>> typeList() { |
| | |
| | | * |
| | | * @param id 回收服务id |
| | | */ |
| | | @RequiresPermissions("serve_recycling_list") |
| | | @ApiOperation(value = "回收服务详情", tags = {"后台-回收管理-回收服务管理"}) |
| | | @GetMapping(value = "/detail") |
| | | @ApiImplicitParams({ |
| | |
| | | * |
| | | * @param recoveryServeRequest 回收服务信息 |
| | | */ |
| | | @RequiresPermissions("serve_recycling_list") |
| | | @ApiOperation(value = "新增回收服务", tags = {"后台-回收管理-回收服务管理"}) |
| | | @PostMapping(value = "/save") |
| | | public R<String> save(@RequestBody RecoveryServeRequest recoveryServeRequest) { |
| | |
| | | * |
| | | * @param recoveryServeRequest 回收服务信息 |
| | | */ |
| | | @RequiresPermissions("serve_recycling_list") |
| | | @ApiOperation(value = "修改回收服务", tags = {"后台-回收管理-回收服务管理"}) |
| | | @PostMapping(value = "/update") |
| | | public R<String> update(@RequestBody RecoveryServeRequest recoveryServeRequest) { |
| | |
| | | * |
| | | * @param ids 回收服务多条id拼接 |
| | | */ |
| | | @RequiresPermissions("serve_recycling_list") |
| | | @ApiOperation(value = "批量删除回收服务", tags = {"后台-回收管理-回收服务管理"}) |
| | | @GetMapping(value = "/batchDelete") |
| | | @ApiImplicitParams({ |