From bbe76086f95dfb34e942d9f2801e17db38391c68 Mon Sep 17 00:00:00 2001 From: zhanghua <314079846@qq.com> Date: 星期二, 21 十一月 2023 21:34:05 +0800 Subject: [PATCH] 接口测试 --- ycl-common/src/main/java/com/ycl/config/IgnoreUrlsConfig.java | 3 ++- ycl-platform/src/main/java/com/ycl/controller/region/SccgRegionController.java | 2 ++ ycl-platform/src/main/java/com/ycl/controller/platformApi/AlarmController.java | 8 ++++++++ ycl-platform/src/main/resources/application.yml | 3 ++- ycl-common/src/main/java/com/ycl/controller/user/UmsAdminController.java | 7 +++++++ 5 files changed, 21 insertions(+), 2 deletions(-) diff --git a/ycl-common/src/main/java/com/ycl/config/IgnoreUrlsConfig.java b/ycl-common/src/main/java/com/ycl/config/IgnoreUrlsConfig.java index 9faa8e3..05c0578 100644 --- a/ycl-common/src/main/java/com/ycl/config/IgnoreUrlsConfig.java +++ b/ycl-common/src/main/java/com/ycl/config/IgnoreUrlsConfig.java @@ -5,6 +5,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; /** @@ -15,6 +16,6 @@ @ConfigurationProperties(prefix = "secure.ignored") public class IgnoreUrlsConfig { - private List<String> urls = new ArrayList<>(); + private List<String> urls = Arrays.asList("sccg/admin/systemInfo"); } diff --git a/ycl-common/src/main/java/com/ycl/controller/user/UmsAdminController.java b/ycl-common/src/main/java/com/ycl/controller/user/UmsAdminController.java index 25f8004..1ba37af 100644 --- a/ycl-common/src/main/java/com/ycl/controller/user/UmsAdminController.java +++ b/ycl-common/src/main/java/com/ycl/controller/user/UmsAdminController.java @@ -365,4 +365,11 @@ public CommonResult<List<UmsAdmin>> getDepartUser(@PathVariable Long departId) { return CommonResult.success(adminService.getDepartUser(departId)); } + + @GetMapping(value = "/systemInfo") + @ResponseBody + public String getImages(HttpServletRequest request, HttpServletResponse response) { + return "閬傛槍缁煎悎鎵ф硶骞冲彴"; + + } } \ No newline at end of file diff --git a/ycl-platform/src/main/java/com/ycl/controller/platformApi/AlarmController.java b/ycl-platform/src/main/java/com/ycl/controller/platformApi/AlarmController.java index b36d4d7..ce3d44c 100644 --- a/ycl-platform/src/main/java/com/ycl/controller/platformApi/AlarmController.java +++ b/ycl-platform/src/main/java/com/ycl/controller/platformApi/AlarmController.java @@ -126,6 +126,14 @@ } + + @GetMapping(value = "/index") + @ResponseBody + public String getImages(HttpServletRequest request, HttpServletResponse response) { + return "閬傛槍缁煎悎鎵ф硶骞冲彴"; + + } + private byte[] getBytes(String fileUrl, String OSSAccessKeyId, String Signature, String sessionId) { int index = sessionDic.get(sessionId); try { diff --git a/ycl-platform/src/main/java/com/ycl/controller/region/SccgRegionController.java b/ycl-platform/src/main/java/com/ycl/controller/region/SccgRegionController.java index 349a9c9..a2ae969 100644 --- a/ycl-platform/src/main/java/com/ycl/controller/region/SccgRegionController.java +++ b/ycl-platform/src/main/java/com/ycl/controller/region/SccgRegionController.java @@ -17,6 +17,8 @@ import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; import java.util.List; /** diff --git a/ycl-platform/src/main/resources/application.yml b/ycl-platform/src/main/resources/application.yml index cfb4e39..760b682 100644 --- a/ycl-platform/src/main/resources/application.yml +++ b/ycl-platform/src/main/resources/application.yml @@ -1,6 +1,6 @@ spring: profiles: - active: online + active: dev main: allow-circular-references: true allow-bean-definition-overriding: true @@ -83,6 +83,7 @@ - /**/admin/register - /**/admin/info - /**/admin/logout + - /**/admin/systemInfo - /dict/** - /sccg-region/** - /**/system/portal/logo/search -- Gitblit v1.8.0