| | |
| | | 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) { |
| | |
| | | } |
| | | 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()); |
| | | } |
| | | |
| | | } |
| | | |