package com.qxueyou.scc.sys.service;
|
|
import java.io.File;
|
import java.io.InputStream;
|
|
import com.qxueyou.scc.base.model.Result;
|
|
/**
|
* �����洢����
|
* @author �»�
|
*
|
*/
|
public interface IOssService {
|
|
/**
|
* �ϴ�ͼƬ
|
* @param file
|
* @param destPath
|
* @return �ϴ����
|
*/
|
Result uplpadImage(File file,String destPath);
|
|
/**
|
* �ϴ�ͼƬ
|
* @param file
|
* @param destPath
|
* @return �ϴ����
|
*/
|
Result uplpadImage(InputStream ins,String fileFormat,String destPath);
|
|
/**
|
* �ϴ��ļ�
|
* @param file
|
* @param destPath
|
* @return �ϴ����
|
*/
|
Result uplpadFile(File file,String destPath);
|
|
/**
|
* �ϴ��ı�ת�ļ�
|
* @param byteArray
|
* @param destPath
|
* @return
|
*/
|
Result uploadFile(byte[] byteArray,String destPath);
|
|
/**
|
* �ϴ���Ƶ
|
* @param input ������
|
* @param fileFormat ��Ƶ��ʽ
|
* @param fileLength �����
|
* @param destPath Ŀ��·��
|
* @return
|
*/
|
Result uplpadFile(InputStream input,String fileFormat,long fileLength, String destPath);
|
|
/**
|
* ��ȡ������·��
|
* @return
|
*/
|
String getServerUrl();
|
|
/**
|
* �ӷ�������ȡ�ļ����浽����
|
* @param key
|
* @param directory
|
* @return
|
*/
|
File getObject(String key,String directory);
|
|
/**
|
* �ӷ�������ȡ���󣬷���������
|
* @param key
|
* @return
|
*/
|
|
InputStream getObject(String key);
|
|
/**
|
* ɾ���ļ�
|
* @param destPath
|
*/
|
void deleteOSSFile (String destPath);
|
}
|