package cn.quantgroup.customer.service;

import cn.quantgroup.customer.rest.vo.JsonResult;

import javax.servlet.http.HttpServletResponse;
import java.io.BufferedInputStream;
import java.net.MalformedURLException;

/**
 * @author tao
 * @version 2020-09-30 17:27
 */
public interface IFileService {

    BufferedInputStream getBufferedInputStream(Long loanId) throws MalformedURLException, Exception;

    /**
     * 下载文件
     * @param response
     * @param fileName
     * @param file
     * @return
     */
    JsonResult outputFile(HttpServletResponse response, String fileName, byte[] file);
}
