From b048146fe01497f47f35f24c10b9bf1e3a06bdf6 Mon Sep 17 00:00:00 2001
From: 101captain <237651143@qq.com>
Date: 星期一, 18 十月 2021 15:18:57 +0800
Subject: [PATCH] 活动改版
---
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/SysConfApi.java | 35 +++++++++++++++++++++++++++++++++++
1 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/SysConfApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/SysConfApi.java
index 59ab1e9..6cbe36b 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/SysConfApi.java
+++ b/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);
+ }
}
--
Gitblit v1.7.1