|
@@ -0,0 +1,26 @@
|
|
|
|
+package nckd.base.helper;
|
|
|
|
+
|
|
|
|
+import kd.bos.fileservice.extension.FileServiceExt;
|
|
|
|
+import kd.bos.logging.Log;
|
|
|
|
+import kd.bos.logging.LogFactory;
|
|
|
|
+import kd.bos.service.attachment.FilePathService;
|
|
|
|
+
|
|
|
|
+import java.io.InputStream;
|
|
|
|
+
|
|
|
|
+public class CusFileServiceExt extends FilePathService implements FileServiceExt {
|
|
|
|
+
|
|
|
|
+ private static final Log logger = LogFactory.getLog(CusFileServiceExt.class);
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public InputStream encode(String originalPath, InputStream in) {
|
|
|
|
+ logger.info("--------------附件加密----------------");
|
|
|
|
+ return in;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public InputStream decode(String originalPath, InputStream in) {
|
|
|
|
+ logger.info("--------------附件解密----------------");
|
|
|
|
+ return in;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+}
|