hjl
2024-06-06 81714ac84eb9cf515c0dbf701b5b87d02bafb6bd
ruoyi-service/ruoyi-management/src/main/java/com/ruoyi/management/controller/TSysSetController.java
@@ -56,6 +56,7 @@
        BeanUtils.copyProperties(byId,sysSetVO);
        return AjaxResult.success(sysSetVO);
    }
    @ApiOperation(value = "保存系统设置", tags = {"后台-系统设置"})
    @PostMapping(value = "/saveSysSet")
    public AjaxResult saveSysSet(SysSetVO vo) {
@@ -65,18 +66,21 @@
        sysSetService.updateById(byId);
        return AjaxResult.success("保存成功");
    }
    @ApiOperation(value = "获取启动页", tags = {"后台-启动页管理"})
    @PostMapping(value = "/getPage")
    public AjaxResult getPage() {
        List<TPage> list = pageService.list();
        return AjaxResult.success(list);
    }
    @ApiOperation(value = "获取注意事项、启动页", tags = {"家长端-获取注意事项、启动页"})
    @PostMapping(value = "/getPage1")
    public R<List<TPage>> getPage1() {
        List<TPage> list = pageService.list();
        return R.ok(list);
    }
    @ApiOperation(value = "保存启动页", tags = {"后台-启动页管理"})
    @PostMapping(value = "/setPage")
    public AjaxResult setPage(@RequestBody PageVO vo) {
@@ -140,6 +144,7 @@
        }
        return AjaxResult.success("保存成功");
    }
    @PostMapping("/agreement")
    @ApiOperation(value = "协议", tags = {"后台-协议管理"})
    public AjaxResult agreement(@RequestBody AggrementDTO dto) {
@@ -152,6 +157,7 @@
            return AjaxResult.success(protocol.getContent());
        }
    }
    @PostMapping("/agreement1/{type}")
    @ApiOperation(value = "协议", tags = {"家长端/学习端-获取协议"})
    public R<String>  agreement1(@PathVariable("type") Integer type) {
@@ -161,6 +167,7 @@
        return R.ok(protocol.getContent());
    }
    @PostMapping("/useGuide")
    @ApiOperation(value = "使用指南-列表查询", tags = {"后台-使用指南"})
    public AjaxResult<PageInfo<TUseGuide>> agreement(String title, Integer pageNumber, Integer pageSize) {
@@ -178,6 +185,7 @@
        res.setTotal(useGuides.size());
        return AjaxResult.success(res);
    }
    @PostMapping("/useGuide1")
    @ApiOperation(value = "列表查询", tags = {"家长端-使用指南"})
    public R<PageInfo<TUseGuide>> useGuide1(@RequestBody UseGuideQuery query) {
@@ -226,6 +234,7 @@
        }
        return AjaxResult.success(new TUseGuide());
    }
    @DeleteMapping("/delete")
    @ApiOperation(value = "使用指南-删除", tags = {"使用指南"})
    public AjaxResult updateUseGuide( Integer id) {
@@ -240,5 +249,11 @@
        return R.ok(sysSetService.lambdaQuery().one());
    }
    @ApiOperation(value = "获取正确及错误提示音效", tags = {"学习端-首页"})
    @GetMapping(value = "/promptVoice")
    public R<TSysSet> promptVoice() {
        return R.ok(sysSetService.lambdaQuery().eq(TSysSet::getDisabled, 0).one());
    }
}