package com.zt.modules.oss.encry; 
 | 
  
 | 
import cn.hutool.core.io.IoUtil; 
 | 
import com.zt.core.oss.encry.IOssEncryptService; 
 | 
import org.springframework.stereotype.Service; 
 | 
  
 | 
import java.io.File; 
 | 
import java.io.InputStream; 
 | 
  
 | 
@Service("noEncryptService") 
 | 
public class NoEncryptService implements IOssEncryptService { 
 | 
  
 | 
    public InputStream encrypt(InputStream inputStream) { 
 | 
        return inputStream; 
 | 
    } 
 | 
  
 | 
    public InputStream decrypt(File file) { 
 | 
        return IoUtil.toStream(file); 
 | 
    } 
 | 
  
 | 
} 
 |