| | |
| | | import com.qxueyou.scc.base.model.Result; |
| | | |
| | | /** |
| | | * �����洢���� |
| | | * @author �»� |
| | | * 锟斤拷锟斤拷锟芥储锟斤拷锟斤拷 |
| | | * @author 锟铰伙拷 |
| | | * |
| | | */ |
| | | public interface IOssService { |
| | | |
| | | /** |
| | | * �ϴ�ͼƬ |
| | | * 锟较达拷图片 |
| | | * @param file |
| | | * @param destPath |
| | | * @return 锟较达拷锟斤拷锟? |
| | | * @return 锟较达拷锟斤拷锟? |
| | | */ |
| | | Result uplpadImage(File file,String destPath); |
| | | |
| | | /** |
| | | * �ϴ�ͼƬ |
| | | * 锟较达拷图片 |
| | | * @param file |
| | | * @param destPath |
| | | * @return 锟较达拷锟斤拷锟? |
| | | * @return 锟较达拷锟斤拷锟? |
| | | */ |
| | | Result uplpadImage(InputStream ins,String fileFormat,String destPath); |
| | | |
| | | /** |
| | | * �ϴ��ļ� |
| | | * 锟较达拷锟侥硷拷 |
| | | * @param file |
| | | * @param destPath |
| | | * @return 锟较达拷锟斤拷锟? |
| | | * @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 Ŀ��·�� |
| | | * 锟较达拷锟斤拷频 |
| | | * @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); |