jinlin
2023-11-16 961e4a807133d53f371f98195c9d8348a0227967
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.zt.modules.oss.encry;
 
import java.io.File;
import java.io.InputStream;
 
import org.springframework.stereotype.Service;
 
import cn.hutool.core.io.IoUtil;
 
import com.zt.core.oss.encry.IOssEncryptService;
 
@Service("noEncryptService")
public class NoEncryptService implements IOssEncryptService {
 
    public InputStream encrypt(InputStream inputStream) {
        return inputStream;
    }
 
    public InputStream decrypt(File file) {
        return IoUtil.toStream(file);
    }
 
}