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); } }