@RestController(value="engine-web-file") @RequestMapping(value="/engine/web/file") public class EngineFileController extends BaseController
request, response
构造器和说明 |
---|
EngineFileController() |
限定符和类型 | 方法和说明 |
---|---|
ApiResult<Object> |
delete(String refid,
String fileName) |
ApiResult<Object> |
download(String refid,
String fileName) |
void |
preview(String refid,
String fileName,
String fileType)
文件预览
/preview/pdf/*****.pdf
|
ApiResult<Object> |
rename(String refid,
String oldFileName,
String newFileName) |
ApiResult<Object> |
upload(String refid,
org.springframework.web.multipart.MultipartFile file) |
error, error, fail, fail, fail, getLoginID, getLoginName, getLoginOrgID, getLoginOrgName, getLoginUser, getTenantId, getUserName, i18n, i18n, isAdministrator, isDeveloper, limit, offset, ok, ok, setInsertLog, setLoginInfo, setUpdateLog, success, success, success, success, validateToken
@PostMapping(value="/upload") @Permission(value="") public ApiResult<Object> upload(@RequestParam String refid, @RequestParam(value="file") org.springframework.web.multipart.MultipartFile file) throws IOException, BusiException, TokenAuthenticationException, AccessPermissionException, SQLException
@PostMapping(value="/download") @Permission(value="") public ApiResult<Object> download(@RequestParam String refid, @RequestParam(value="fileName") String fileName) throws BusiException, TokenAuthenticationException, AccessPermissionException, SQLException
@PostMapping(value="/delete") @Permission(value="") public ApiResult<Object> delete(@RequestParam String refid, @RequestParam(value="fileName") String fileName) throws BusiException, TokenAuthenticationException, AccessPermissionException, SQLException
@PostMapping(value="/rename") @Permission(value="") public ApiResult<Object> rename(@RequestParam String refid, @RequestParam(value="oldFileName") String oldFileName, @RequestParam(value="newFileName") String newFileName) throws BusiException, TokenAuthenticationException, AccessPermissionException, SQLException
@PostMapping(value="/preview") @Permission(value="") public void preview(@RequestParam String refid, @RequestParam(value="fileName") String fileName, @RequestParam(value="fileType",required=false) String fileType) throws BusiException, TokenAuthenticationException, AccessPermissionException, SQLException
fileName
- fileType
- BusiException
TokenAuthenticationException
AccessPermissionException
SQLException
Copyright © 2025. All rights reserved.