| | |
| | | BeanUtils.copyProperties(byId,sysSetVO); |
| | | return AjaxResult.success(sysSetVO); |
| | | } |
| | | |
| | | @ApiOperation(value = "保存系统设置", tags = {"后台-系统设置"}) |
| | | @PostMapping(value = "/saveSysSet") |
| | | public AjaxResult saveSysSet(SysSetVO vo) { |
| | |
| | | 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) { |
| | |
| | | } |
| | | return AjaxResult.success("保存成功"); |
| | | } |
| | | |
| | | @PostMapping("/agreement") |
| | | @ApiOperation(value = "协议", tags = {"后台-协议管理"}) |
| | | public AjaxResult agreement(@RequestBody AggrementDTO dto) { |
| | |
| | | return AjaxResult.success(protocol.getContent()); |
| | | } |
| | | } |
| | | |
| | | @PostMapping("/agreement1/{type}") |
| | | @ApiOperation(value = "协议", tags = {"家长端/学习端-获取协议"}) |
| | | public R<String> agreement1(@PathVariable("type") Integer type) { |
| | |
| | | return R.ok(protocol.getContent()); |
| | | |
| | | } |
| | | |
| | | @PostMapping("/useGuide") |
| | | @ApiOperation(value = "使用指南-列表查询", tags = {"后台-使用指南"}) |
| | | public AjaxResult<PageInfo<TUseGuide>> agreement(String title, Integer pageNumber, Integer pageSize) { |
| | |
| | | res.setTotal(useGuides.size()); |
| | | return AjaxResult.success(res); |
| | | } |
| | | |
| | | @PostMapping("/useGuide1") |
| | | @ApiOperation(value = "列表查询", tags = {"家长端-使用指南"}) |
| | | public R<PageInfo<TUseGuide>> useGuide1(@RequestBody UseGuideQuery query) { |
| | |
| | | } |
| | | return AjaxResult.success(new TUseGuide()); |
| | | } |
| | | |
| | | @DeleteMapping("/delete") |
| | | @ApiOperation(value = "使用指南-删除", tags = {"使用指南"}) |
| | | public AjaxResult updateUseGuide( Integer id) { |
| | |
| | | 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()); |
| | | } |
| | | |
| | | } |
| | | |