forked from github/dataease
perf(X-Pack): 企业微信消息通知
This commit is contained in:
parent
f775e31aff
commit
80b9a3f4f7
2
de-xpack
2
de-xpack
@ -1 +1 @@
|
|||||||
Subproject commit 3609b67779d4f92da4e1e037e2d3e98defeefe40
|
Subproject commit 114cb68167079cb84eeaff060db9dd971166738f
|
@ -3,6 +3,7 @@ package io.dataease.api.communicate.api;
|
|||||||
import io.dataease.api.communicate.dto.MessageDTO;
|
import io.dataease.api.communicate.dto.MessageDTO;
|
||||||
import io.swagger.v3.oas.annotations.Hidden;
|
import io.swagger.v3.oas.annotations.Hidden;
|
||||||
import org.springframework.core.io.ByteArrayResource;
|
import org.springframework.core.io.ByteArrayResource;
|
||||||
|
import org.springframework.http.MediaType;
|
||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.PathVariable;
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
@ -17,4 +18,7 @@ public interface CommunicateApi {
|
|||||||
|
|
||||||
@GetMapping("/down/{fileId}/{fileName}/{suffix}")
|
@GetMapping("/down/{fileId}/{fileName}/{suffix}")
|
||||||
ResponseEntity<ByteArrayResource> down(@PathVariable("fileId") String fileId, @PathVariable("fileName") String fileName, @PathVariable("suffix") String suffix) throws Exception;
|
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, "/map/")
|
||||||
|| StringUtils.startsWithAny(requestURI, "/typeface/download")
|
|| StringUtils.startsWithAny(requestURI, "/typeface/download")
|
||||||
|| StringUtils.startsWithAny(requestURI, "/typeface/defaultFont")
|
|| StringUtils.startsWithAny(requestURI, "/typeface/defaultFont")
|
||||||
|
|| StringUtils.startsWithAny(requestURI, "/communicate/image/")
|
||||||
|| StringUtils.startsWithAny(requestURI, "/communicate/down/");
|
|| StringUtils.startsWithAny(requestURI, "/communicate/down/");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user