From 8f4771b3b83a496643b72a45a1a9dcb32a6bb2c8 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期四, 24 十月 2024 13:58:43 +0800
Subject: [PATCH] ll
---
server/system_service/src/main/java/com/doumee/api/cloud/SystemDictDataCloudController.java | 24 +++++++++++++++++++++++-
1 files changed, 23 insertions(+), 1 deletions(-)
diff --git a/server/system_service/src/main/java/com/doumee/api/cloud/SystemDictDataCloudController.java b/server/system_service/src/main/java/com/doumee/api/cloud/SystemDictDataCloudController.java
index ffdaee2..38ce34c 100644
--- a/server/system_service/src/main/java/com/doumee/api/cloud/SystemDictDataCloudController.java
+++ b/server/system_service/src/main/java/com/doumee/api/cloud/SystemDictDataCloudController.java
@@ -9,6 +9,7 @@
import com.doumee.core.model.PageData;
import com.doumee.core.model.PageWrap;
import com.doumee.core.utils.Constants;
+import com.doumee.dao.system.dto.PlatformConfigDTO;
import com.doumee.dao.system.dto.QuerySystemDictDataDTO;
import com.doumee.dao.system.dto.VisitConfigDTO;
import com.doumee.dao.system.model.SystemDictData;
@@ -108,7 +109,7 @@
@GetMapping("/getVisitConfigDTO")
public ApiResponse<VisitConfigDTO> getVisitConfigDTO(){
return ApiResponse.success(systemDictDataService.getVisitConfigDTO());
- };
+ }
/**
* 淇敼璁垮鏉ヨ閰嶇疆
@@ -121,4 +122,25 @@
systemDictDataService.updateVisitConfig(visitConfigDTO);
return ApiResponse.success(null);
};
+ /**
+ * 璁垮鏉ヨ閰嶇疆
+ * @return
+ */
+ @ApiOperation(value = "璁垮鏉ヨ閰嶇疆" )
+ @GetMapping("/getPlatformConfigDTO")
+ public ApiResponse<PlatformConfigDTO> getPlatformConfigDTO(){
+ return ApiResponse.success(systemDictDataService.getPlatformConfigDTO());
+ };
+
+ /**
+ * 淇敼璁垮鏉ヨ閰嶇疆
+ * @param visitConfigDTO
+ */
+ @ApiOperation(value = "淇敼璁垮鏉ヨ閰嶇疆" )
+ @PostMapping("/updatePlatformConfig")
+ public ApiResponse updatePlatformConfig(@RequestBody PlatformConfigDTO visitConfigDTO,@RequestHeader(Constants.HEADER_USER_TOKEN) String token){
+ visitConfigDTO.setLoginUserInfo(this.getLoginUser(token));
+ systemDictDataService.updatePlatformConfig(visitConfigDTO);
+ return ApiResponse.success(null);
+ };
}
--
Gitblit v1.9.3