Merge pull request #11802 from dataease/pr@dev-v2@perf_communicate

perf(X-Pack): 企业微信消息通知
This commit is contained in:
fit2cloud-chenyw
2024-08-28 11:17:31 +08:00
committed by GitHub
3 changed files with 6 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ package io.dataease.api.communicate.api;
import io.dataease.api.communicate.dto.MessageDTO;
import io.swagger.v3.oas.annotations.Hidden;
import org.springframework.core.io.ByteArrayResource;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
@@ -17,4 +18,7 @@ public interface CommunicateApi {
@GetMapping("/down/{fileId}/{fileName}/{suffix}")
ResponseEntity<ByteArrayResource> down(@PathVariable("fileId") String fileId, @PathVariable("fileName") String fileName, @PathVariable("suffix") String suffix) throws Exception;
@GetMapping(value = "/image/{imageId}", produces = {MediaType.IMAGE_JPEG_VALUE, MediaType.IMAGE_PNG_VALUE})
ResponseEntity<byte[]> image(@PathVariable("imageId") String imageId);
}

View File

@@ -70,6 +70,7 @@ public class WhitelistUtils {
|| StringUtils.startsWithAny(requestURI, "/map/")
|| StringUtils.startsWithAny(requestURI, "/typeface/download")
|| StringUtils.startsWithAny(requestURI, "/typeface/defaultFont")
|| StringUtils.startsWithAny(requestURI, "/communicate/image/")
|| StringUtils.startsWithAny(requestURI, "/communicate/down/");
}
}