package org.security.trans.common.service;

import org.security.ht.vo.common.UploadVO;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * @author zj 2022/5/11
 */
public interface UploadService {

	/**
	 * 单个文件上传
	 *
	 * @param file
	 * @return
	 */
	UploadVO uploadSingleFile(MultipartFile file, String groupType, String groupName) throws IOException;

	/**
	 * 批量文件上传
	 *
	 * @param files
	 * @return
	 */
	List<UploadVO> uploadListFile(List<MultipartFile> files, String groupType, String groupName);
}
