| | |
| | | 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") |
| | |
| | | public R<TSysSet> promptVoice() { |
| | | return R.ok(sysSetService.lambdaQuery().eq(TSysSet::getDisabled, 0).one()); |
| | | } |
| | | @ApiOperation(value = "2.0新增,是否展示文字配置", tags = {"2.0新增,是否展示文字配置"}) |
| | | @GetMapping(value = "/getIsOpen") |
| | | public R<Boolean> getIsOpen() { |
| | | TSysSet one = sysSetService.lambdaQuery().eq(TSysSet::getDisabled, 0).one(); |
| | | switch (one.getIsOpen()){ |
| | | case 1: |
| | | return R.ok(true); |
| | | case 0: |
| | | return R.ok(false); |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | | } |
| | | |