package com.artfess.file.service.impl;


import com.artfess.base.attachment.AttachmentServiceFactory;
import com.artfess.file.model.DefaultFile;
import com.artfess.file.service.FilePreview;
import com.artfess.file.util.ZipReader;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Map;

/**
 * Created by kl on 2018/1/17.
 * Content :处理压缩包文件
 */
@SuppressWarnings(value ={"unchecked","rawtypes"})
@Service
public class CompressFilePreviewImpl implements FilePreview{

	@Value("${file.file.dir}")
	String fileDir;

	@Autowired
	ZipReader zipReader;
	@Resource
	AttachmentServiceFactory attachmentServiceFactory;

	@Override
	public String filePreviewHandle(DefaultFile fileMode,Map map) {
	    return "compress";
	}

}
