派生自 projectDept/qhighschool

胡仁荣
2022-10-31 fe7381d6e8ec1f427408de0297ac7f41533202f6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
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);
}