@Service public class SohelpFileService extends Object
| 构造器和说明 |
|---|
SohelpFileService() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
delete(List ids)
删除指定ID列表的文件记录及其对应的文件
|
void |
delete(String id)
删除文件
|
void |
preview(String fileName,
javax.servlet.http.HttpServletResponse response)
文件预览
|
void |
rename(String id,
String newFileName)
重命名文件
|
long |
upload(org.springframework.web.multipart.MultipartFile tempFile) |
public long upload(org.springframework.web.multipart.MultipartFile tempFile)
throws BusiException,
IOException,
TokenAuthenticationException
@Comment(value="\u5220\u9664\u6587\u4ef6") public void delete(String id) throws BusiException
id - BusiExceptionpublic void delete(List ids) throws BusiException
ids - 需要删除的文件ID列表BusiException - 如果删除过程中发生业务异常,抛出此异常@Comment(value="\u91cd\u547d\u540d\u6587\u4ef6") public void rename(String id, String newFileName) throws BusiException
BusiException@Comment(value="\u6587\u4ef6\u9884\u89c8") public void preview(String fileName, javax.servlet.http.HttpServletResponse response) throws BusiException
BusiExceptionCopyright © 2025. All rights reserved.