jiangqs
2023-07-07 0ab1b864458f36b294933112824b10b13770915e
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,11 +80,18 @@
    @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)
@@ -443,7 +450,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);
    }
@@ -474,4 +481,6 @@
        MgtBulletinBoardVo bulletinBoard = customConfigService.getBulletinBoard();
        return R.ok(bulletinBoard);
    }
}