类 EngineDownloadController
java.lang.Object
net.sohelp.boot.admin.core.base.BaseController
net.sohelp.boot.engine.web.controller.EngineDownloadController
@RestController("engine-web-io-download")
@RequestMapping("/engine/web/download")
@ConditionalOnExpression("${sohelp-boot.engine.enabled:true} && ${sohelp-boot.engine.download.enabled:true}")
public class EngineDownloadController
extends BaseController
批量导出
- 从以下版本开始:
- 2023/8/17 20:06
- 作者:
- AaronFung
-
字段概要
从类继承的字段 net.sohelp.boot.admin.core.base.BaseController
request, response -
构造器概要
构造器 -
方法概要
从类继承的方法 net.sohelp.boot.admin.core.base.BaseController
error, error, fail, fail, fail, getLoginID, getLoginName, getLoginOrgID, getLoginOrgName, getLoginUser, getNickname, getTenantId, getUserName, getUserNo, i18n, i18n, isAdministrator, isDeveloper, limit, offset, ok, ok, response, response, responseStream, success, success, success, success, validateToken
-
构造器详细资料
-
EngineDownloadController
public EngineDownloadController()
-
-
方法详细资料
-
download
@PostMapping("/download") @Permission("") public ApiResult<Object> download(@RequestParam String refid, @RequestParam("fileName") String fileName) throws BusiException, TokenAuthenticationException, AccessPermissionException, SQLException 文件下载接口 用于根据提供的refid和fileName下载文件- 参数:
refid- 文件的引用ID,用于定位需要下载的文件fileName- 文件名,指定要下载的文件名称- 返回:
- 返回ApiResult对象,包含文件下载的结果信息
- 抛出:
BusiException- 业务异常,当业务逻辑出现错误时抛出TokenAuthenticationException- 令牌认证异常,当令牌认证失败时抛出AccessPermissionException- 访问权限异常,当没有访问权限时抛出SQLException- 数据库异常,当数据库操作失败时抛出
-