package com.hai.service;

import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * @ClassName: FileUploadService
 * @Description: 文件上传
 * @author: gongjia
 * @date: 2019/10/30 11:36
 * @Copyright: 2019 www.shinwoten.com Inc. All rights reserved.
 */
public interface FileUploadService {

    /**
     *
     * @Title: upload
     * @Description: 上传文件
     * @author: gongjia
     * @param: [files, paramsMap]
     * @return: java.util.List<java.lang.String>
     * @throws
     */
    Map<String, String> upload(List<MultipartFile> files, Map<String, String> paramsMap) throws Exception;

    /**
     *
     * @Title: deleteFile
     * @Description: 删除文件
     * @author: 杜江
     * @Date: 2020/7/9 10:12
     * @param: [filePath]
     * @return: boolean
     * @throws
     */
    boolean deleteFile(String filePath);
}
