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
commit e1d4ccaaee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 1 deletions

@ -1 +1 @@
Subproject commit 3609b67779d4f92da4e1e037e2d3e98defeefe40
Subproject commit 114cb68167079cb84eeaff060db9dd971166738f

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/");
}
}