管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-03-18 cb9fbcd27a288d0c61d85fa13ff5fc8eb1f4deab
src/main/java/com/lf/server/controller/sys/ResController.java
@@ -313,26 +313,4 @@
    public void downloadForView(String guid, HttpServletResponse res) {
        uploadAttachService.download(guid, true, res);
    }
    @SysLog()
    @ApiOperation(value = "请求下载")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "guids", value = "附件Guid数组", dataType = "String", paramType = "body", allowMultiple = true, example = "e5b6ae0889b88111f13a4b6e048348db,fa4f299e901a0c46e634f8fcc8185c0c")
    })
    @ResponseBody
    @PostMapping(value = "/downloadReq")
    public ResponseMsg<Object> downloadReq(String[] guids, HttpServletRequest req, HttpServletResponse res) {
        try {
            if (null == guids || guids.length == 0) {
                return fail("附件Guid数组为空");
            }
            UserEntity ue = tokenService.getCurrentUser(req);
            //String guid = downloadService.zipFiles(ue, list, reqEntity.getPwd());
            return success("");
        } catch (Exception ex) {
            return fail(ex, null);
        }
    }
}