mirror of
https://github.com/dataease/dataease.git
synced 2026-05-17 15:00:59 +08:00
Merge pull request #11802 from dataease/pr@dev-v2@perf_communicate
perf(X-Pack): 企业微信消息通知
This commit is contained in:
2
de-xpack
2
de-xpack
Submodule de-xpack updated: 3609b67779...114cb68167
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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/");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user