From af243c209737fbae0671638f0e73a9e670f3d6fa Mon Sep 17 00:00:00 2001 From: Pu Zhibing <393733352@qq.com> Date: 星期二, 24 十二月 2024 09:19:37 +0800 Subject: [PATCH] 修改小程序权限控制及更换接口 --- ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TSystemConfigurationController.java | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TSystemConfigurationController.java b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TSystemConfigurationController.java index 05d4c75..8770c49 100644 --- a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TSystemConfigurationController.java +++ b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TSystemConfigurationController.java @@ -37,7 +37,7 @@ * 查看系统设置 */ @RequiresPermissions(value = {"/customerServiceInformation", "/systemContentSetting"}, logical = Logical.OR) - @ApiOperation(tags = {"小程序-系统设置","后台-内容设置"},value = "联系客服,查询设置") + @ApiOperation(tags = {"后台-内容设置"},value = "联系客服,查询设置") @GetMapping(value = "/getDetailById") public AjaxResult<TSystemConfiguration> getDetailById(@RequestParam("type")@ApiParam(value = "1=客服信息,2=系统设置") Integer type) { return AjaxResult.ok(systemConfigurationService.getOne(Wrappers.lambdaQuery(TSystemConfiguration.class) @@ -45,6 +45,17 @@ } + /** + * 查看系统设置 + */ + @ApiOperation(tags = {"小程序-系统设置"},value = "联系客服,查询设置") + @GetMapping(value = "/getDetailById1") + public AjaxResult<TSystemConfiguration> getDetailById1(@RequestParam("type")@ApiParam(value = "1=客服信息,2=系统设置") Integer type) { + return AjaxResult.ok(systemConfigurationService.getOne(Wrappers.lambdaQuery(TSystemConfiguration.class) + .eq(TSystemConfiguration::getType, type))); + } + + @RequiresPermissions(value = {"/customerServiceInformation", "/systemContentSetting"}, logical = Logical.OR) @ApiOperation(tags = {"后台-内容设置"},value = "客户信息,系统内容设置") -- Gitblit v1.7.1