commit
This commit is contained in:
@@ -68,7 +68,7 @@ public class SysFileController {
|
|||||||
@POST
|
@POST
|
||||||
@AdaptBy(type = UploadAdaptor.class, args = {"ioc:fileUpload"})
|
@AdaptBy(type = UploadAdaptor.class, args = {"ioc:fileUpload"})
|
||||||
@SaCheckLogin
|
@SaCheckLogin
|
||||||
@SaCheckRole("MEMBER")
|
@SaCheckRole("PUBLIC")
|
||||||
public Result uploadDynamicReturnUrl(TempFile file) {
|
public Result uploadDynamicReturnUrl(TempFile file) {
|
||||||
try {
|
try {
|
||||||
if (file == null) {
|
if (file == null) {
|
||||||
@@ -126,7 +126,7 @@ public class SysFileController {
|
|||||||
@At
|
@At
|
||||||
@Ok("void")
|
@Ok("void")
|
||||||
@SaCheckLogin
|
@SaCheckLogin
|
||||||
@SaCheckRole("MEMBER")
|
@SaCheckRole("PUBLIC")
|
||||||
public void download(String id, HttpServletRequest request, HttpServletResponse response) throws IOException {
|
public void download(String id, HttpServletRequest request, HttpServletResponse response) throws IOException {
|
||||||
sysFileService.download(id, request, response);
|
sysFileService.download(id, request, response);
|
||||||
}
|
}
|
||||||
@@ -135,7 +135,7 @@ public class SysFileController {
|
|||||||
@Ok("void")
|
@Ok("void")
|
||||||
@SaCheckLogin
|
@SaCheckLogin
|
||||||
@ApiOperation("文件管理-转换PDF")
|
@ApiOperation("文件管理-转换PDF")
|
||||||
@SaCheckRole("MEMBER")
|
@SaCheckRole("PUBLIC")
|
||||||
public void convertPDF(String id, HttpServletRequest request, HttpServletResponse response) throws IOException {
|
public void convertPDF(String id, HttpServletRequest request, HttpServletResponse response) throws IOException {
|
||||||
sysFileService.convertPDF(id, request, response);
|
sysFileService.convertPDF(id, request, response);
|
||||||
}
|
}
|
||||||
@@ -144,7 +144,7 @@ public class SysFileController {
|
|||||||
@SaCheckLogin
|
@SaCheckLogin
|
||||||
@ApiOperation("文件管理-转换HTML")
|
@ApiOperation("文件管理-转换HTML")
|
||||||
@AdaptBy(type = UploadAdaptor.class, args = {"ioc:fileUpload"})
|
@AdaptBy(type = UploadAdaptor.class, args = {"ioc:fileUpload"})
|
||||||
@SaCheckRole("MEMBER")
|
@SaCheckRole("PUBLIC")
|
||||||
public Result convertHtml(TempFile file) {
|
public Result convertHtml(TempFile file) {
|
||||||
return Result.success().addData(sysFileService.convertHtml(file));
|
return Result.success().addData(sysFileService.convertHtml(file));
|
||||||
}
|
}
|
||||||
@@ -171,7 +171,7 @@ public class SysFileController {
|
|||||||
@At
|
@At
|
||||||
@SaCheckLogin
|
@SaCheckLogin
|
||||||
@ApiOperation("文件管理-前端预览文件完整数据")
|
@ApiOperation("文件管理-前端预览文件完整数据")
|
||||||
@SaCheckRole("MEMBER")
|
@SaCheckRole("PUBLIC")
|
||||||
public Result previewFileData(@Param("ids") String[] ids) {
|
public Result previewFileData(@Param("ids") String[] ids) {
|
||||||
List<Sys_file> files = sysFileService.previewFileData(ids);
|
List<Sys_file> files = sysFileService.previewFileData(ids);
|
||||||
return Result.success(files);
|
return Result.success(files);
|
||||||
@@ -181,7 +181,7 @@ public class SysFileController {
|
|||||||
@SaCheckLogin
|
@SaCheckLogin
|
||||||
@ApiOperation("文件管理-视频播放")
|
@ApiOperation("文件管理-视频播放")
|
||||||
@Ok("void")
|
@Ok("void")
|
||||||
@SaCheckRole("MEMBER")
|
@SaCheckRole("PUBLIC")
|
||||||
public void videoPlay(String id, HttpServletRequest request, HttpServletResponse response) {
|
public void videoPlay(String id, HttpServletRequest request, HttpServletResponse response) {
|
||||||
Sys_file sys_file = sysFileService.detail(id);
|
Sys_file sys_file = sysFileService.detail(id);
|
||||||
byte[] bytes = SysFileMinIoUtil.getFileBytes(sys_file.getBucket(), sys_file.getStoragePath());
|
byte[] bytes = SysFileMinIoUtil.getFileBytes(sys_file.getBucket(), sys_file.getStoragePath());
|
||||||
|
|||||||
Reference in New Issue
Block a user