| | |
| | | * @Date 2023/6/6 9:14 |
| | | * @Version 1.0 |
| | | */ |
| | | @Api(value = "平台端配置相关接口", tags = "平台端配置相关接口", description = "平台端配置相关接口") |
| | | @Api(value = "管理后台配置相关接口", tags = "管理后台配置相关接口", description = "管理后台配置相关接口") |
| | | @RestController |
| | | @RequestMapping("/mgt/config") |
| | | public class MgtConfigController { |
| | |
| | | |
| | | @RequestMapping(value = "/getCustomConfig", method = RequestMethod.POST) |
| | | @ApiOperation(value = "获取单个配置") |
| | | public R<MgtCustomConfigVo> getCustomConfig(@RequestBody MgtCustomConfigDto mgtCustomConfigDto) { |
| | | public R<List<String>> getCustomConfig(@RequestBody MgtCustomConfigDto mgtCustomConfigDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | mgtCustomConfigDto.setUserId(userId); |
| | | MgtCustomConfigVo mgtCustomConfigVo = customConfigService.getCustomConfig(mgtCustomConfigDto); |
| | | List<String> mgtCustomConfigVo = customConfigService.getCustomConfig(mgtCustomConfigDto); |
| | | return R.ok(mgtCustomConfigVo); |
| | | } |
| | | |
| | | @RequestMapping(value = "/getActivenessList", method = RequestMethod.POST) |
| | | @ApiOperation(value = "获取活跃度") |
| | | public R<List<MgtActivenessListVo>> getActivenessList() { |
| | | List<MgtActivenessListVo> activenessList = activenessService.getActivenessList(); |
| | | return R.ok(activenessList); |
| | | } |
| | | |
| | | @RequestMapping(value = "/editCooperation", method = RequestMethod.POST) |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/listOperTitle", method = RequestMethod.POST) |
| | | @ApiOperation(value = "获取操作类型列表") |
| | | public R<List<String>> pageOperLog() { |
| | | List<String> operTitleList = customConfigService.listOperTitle(); |
| | | return R.ok(operTitleList); |
| | | } |
| | | |
| | | @RequestMapping(value = "/pageOperLog", method = RequestMethod.POST) |
| | | @ApiOperation(value = "分页获取操作日志") |
| | | public R<Page<MgtOperLogPageVo>> pageOperLog(@RequestBody MgtOperLogPageDto mgtOperLogPageDto) { |
| | |
| | | return R.ok(page.setRecords(mgtArticlePageVoList)); |
| | | } |
| | | |
| | | @RequestMapping(value = "/getArticle", method = RequestMethod.POST) |
| | | @ApiOperation(value = "获取文章") |
| | | public R<MgtArticleGetVo> getArticle(@RequestBody MgtBaseGetDto mgtBaseGetDto) { |
| | | mgtBaseGetDto.setUserId(SecurityUtils.getUserId()); |
| | | MgtArticleGetVo mgtArticleGetVo = articleService.getArticle(Long.valueOf(mgtBaseGetDto.getId())); |
| | | return R.ok(mgtArticleGetVo); |
| | | } |
| | | |
| | | @RequestMapping(value = "/editArticle", method = RequestMethod.POST) |
| | | @Log(title = "文章管理", businessType = BusinessType.UPDATE,operContent = "修改文章") |
| | | @ApiOperation(value = "修改文章") |
| | |
| | | @RequestMapping(value = "/listCity", method = RequestMethod.POST) |
| | | @ApiOperation(value = "获取省市列表") |
| | | public R<List<RegionVo>> listCity(){ |
| | | List<RegionVo> regionVoList = regionService.listRegionVo(); |
| | | List<RegionVo> regionVoList = regionService.listCityVo(); |
| | | return R.ok(regionVoList); |
| | | } |
| | | |
| | |
| | | MgtBulletinBoardVo bulletinBoard = customConfigService.getBulletinBoard(); |
| | | return R.ok(bulletinBoard); |
| | | } |
| | | |
| | | |
| | | } |