jiangqs
2023-07-13 cfd0118ef446a66f91999afc7b1e46ca607adf50
ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/management/MgtConfigController.java
@@ -33,7 +33,7 @@
 * @Date 2023/6/6 9:14
 * @Version 1.0
 */
@Api(value = "平台端配置相关接口", tags = "平台端配置相关接口", description = "平台端配置相关接口")
@Api(value = "管理后台配置相关接口", tags = "管理后台配置相关接口", description = "管理后台配置相关接口")
@RestController
@RequestMapping("/mgt/config")
public class MgtConfigController {
@@ -80,17 +80,17 @@
    @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<String>> getActivenessList() {
        List<String> activenessList = activenessService.getActivenessList();
    public R<List<MgtActivenessListVo>> getActivenessList() {
        List<MgtActivenessListVo> activenessList = activenessService.getActivenessList();
        return R.ok(activenessList);
    }
@@ -335,6 +335,13 @@
        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) {
@@ -421,6 +428,14 @@
        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 = "修改文章")
@@ -450,7 +465,7 @@
    @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);
    }
@@ -481,4 +496,6 @@
        MgtBulletinBoardVo bulletinBoard = customConfigService.getBulletinBoard();
        return R.ok(bulletinBoard);
    }
}