1
hao
2025-05-20 8e24c6fea30d9b179375ee2893710cdec2443b13
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
package com.system.file.service;
 
import java.nio.charset.Charset;
 
import javax.servlet.http.HttpServletResponse;
 
import org.springframework.web.multipart.MultipartFile;
 
import com.app.base.data.ApiResponseResult;
import com.system.file.entity.FsFile;
 
/**
 * 文件管理
 * @author fyx
 *
 */
public interface FileService {
    public static final String HASH_ALGORITHM = "SHA-1";
    public static final int HASH_INTERATIONS = 1024;
    public static final int SALT_SIZE = 8;
    public static final Charset CHARSET = Charset.forName("UTF-8");
 
    public ApiResponseResult upload(FsFile fsFile, MultipartFile file) throws Exception;
 
    public ApiResponseResult get(Long fsFileId, HttpServletResponse response) throws Exception;
 
    public ApiResponseResult onlineView(Long fsFileId, HttpServletResponse response) throws Exception;
 
    public ApiResponseResult delete(Long fsFileId) throws Exception;
 
}