101captain
2021-09-22 1775bb71f952106c58657cf02891cbe2a286c8f8
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/SysConfApi.java
@@ -33,4 +33,39 @@
        }
        return R.ok(value);
    }
    /**
     * 根据系统code以及社区id查询配置表value值
     *
     * @param key         系统code
     * @param communityId 社区id
     * @return 系统配置value值
     */
    @GetMapping("getSysConfValue")
    public R getSysConfValue(@RequestParam("key") String key,@RequestParam("communityId") Long communityId) {
        return sysConfService.getSysConfValue(key,communityId);
    }
    /**
     * 新增系统code配置数据
     *
     * @param key         系统code
     * @param communityId 社区id
     * @return 新增结果
     */
    @GetMapping("addSysConfValue")
    public R addSysConfValue(@RequestParam("key") String key,@RequestParam("communityId") Long communityId,@RequestParam("name") String name,@RequestParam("value") String value) {
        return sysConfService.addSysConfValue(key,communityId,name,value);
    }
    /**
     * 编辑系统配置
     * @param communityId   社区id
     * @param status    配置值
     * @return  编辑结果
     */
    @GetMapping("editSysConfValue")
    public R editSysConfValue(@RequestParam("communityId") Long communityId,@RequestParam("status") Integer status) {
        return sysConfService.editSysConfValue(communityId,status);
    }
}