package com.uas.platform.b2b.service;

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

import com.uas.platform.b2b.model.Attach;
import com.uas.platform.b2b.model.FileUpload;

public interface AttachService {

	/**
	 * 保存一个文件路径
	 * 
	 * @param attach
	 * @return
	 */
	public Attach save(Attach attach);

	/**
	 * 上传文件
	 *
	 * @param uploadItem
	 * @param parentDir
	 *            文件的父级目录
	 * @param description
	 *            描述
	 * @return
	 */
	public Attach upload(FileUpload uploadItem, String parentDir, String description);

	/**
	 * @param uploadItem
	 * @param parentDir
	 *            文件的父级目录
	 * @param description
	 *            描述
	 * @return
	 */
	public List<Attach> uploadZipAndSave(FileUpload uploadItem, String parentDir, String description,
			Map<String, Map<String, Object>> entryParams);

	/**
	 * 上传经压缩过的文件
	 * 
	 * @param uploadItem
	 * @param parentDir
	 *            文件的父级目录
	 * @param description
	 *            描述
	 * @return
	 */
	public Map<String, String> uploadZip(FileUpload uploadItem, String parentDir, String description);

}
