From 18e9c3c8c5c05fb14b13d2a30a69af0165496f33 Mon Sep 17 00:00:00 2001 From: liukangdong <898885815@qq.com> Date: 星期四, 31 十月 2024 17:46:10 +0800 Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/dmvisit --- 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