|
|
|
@ -90,7 +90,7 @@ public class SysOssController extends BaseController {
|
|
|
|
|
@SaCheckPermission("system:oss:download")
|
|
|
|
|
@GetMapping("/download/{ossId}")
|
|
|
|
|
public void download(@PathVariable Long ossId, HttpServletResponse response) throws IOException {
|
|
|
|
|
iSysOssService.download(ossId,response);
|
|
|
|
|
iSysOssService.download(ossId, response);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -102,7 +102,7 @@ public class SysOssController extends BaseController {
|
|
|
|
|
@Log(title = "OSS对象存储", businessType = BusinessType.DELETE)
|
|
|
|
|
@DeleteMapping("/{ossIds}")
|
|
|
|
|
public R<Void> remove(@NotEmpty(message = "主键不能为空") @PathVariable Long[] ossIds) {
|
|
|
|
|
return toAjax(iSysOssService.deleteWithValidByIds(Arrays.asList(ossIds), true) ? 1 : 0);
|
|
|
|
|
return toAjax(iSysOssService.deleteWithValidByIds(Arrays.asList(ossIds), true));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|