44323
2024-05-22 b45c2583b4764edb95efe9880c4abfddb8a1ec21
ruoyi-service/ruoyi-management/src/main/java/com/ruoyi/management/controller/TSysSetController.java
@@ -101,6 +101,15 @@
            return AjaxResult.success(protocol.getContent());
        }
    }
    @PostMapping("/agreement1/{type}")
    @ApiOperation(value = "协议", tags = {"家长端/学习端-获取协议"})
    public R<String>  agreement1(@PathVariable("type") Integer type) {
        TProtocol protocol = protocolService.getOne(new QueryWrapper<TProtocol>()
                .eq("type",type));
        return R.ok(protocol.getContent());
    }
    @PostMapping("/useGuide")
    @ApiOperation(value = "使用指南-列表查询", tags = {"后台-使用指南"})
    public AjaxResult<PageInfo<TUseGuide>> agreement(String title, Integer pageNumber, Integer pageSize) {
@@ -161,12 +170,19 @@
        }
        return AjaxResult.success(new TUseGuide());
    }
    @DeleteMapping("/delete{id}")
    @DeleteMapping("/delete")
    @ApiOperation(value = "使用指南-删除", tags = {"使用指南"})
    public AjaxResult updateUseGuide(@PathVariable Integer id) {
    public AjaxResult updateUseGuide( Integer id) {
//        TUseGuide useGuide2 = useGuideService.getById(id);
        useGuideService.removeById(id);
        return AjaxResult.success("删除成功");
    }
    @GetMapping("/shareInfo")
    @ApiOperation(value = "获取分享图片、标题及可获积分数", tags = {"获取分享图片、标题及可获积分数"})
    public R<TSysSet> shareInfo() {
        return R.ok(sysSetService.lambdaQuery().one());
    }
}