|
@@ -61,8 +61,10 @@ public class SysOssController extends BaseController {
|
|
|
*/
|
|
|
@SaCheckPermission("system:oss:list")
|
|
|
@GetMapping("/listByIds/{ossIds}")
|
|
|
+ @Log(title = "OSS对象存储", businessType = BusinessType.OTHER)
|
|
|
public R<List<SysOssVo>> listByIds(@NotEmpty(message = "主键不能为空")
|
|
|
- @PathVariable Long[] ossIds) {
|
|
|
+ @PathVariable Long[] ossIds,@RequestParam(required = false,defaultValue = "1") String type ) {
|
|
|
+
|
|
|
List<SysOssVo> list = ossService.listByIds(Arrays.asList(ossIds));
|
|
|
return R.ok(list);
|
|
|
}
|
|
@@ -93,6 +95,7 @@ public class SysOssController extends BaseController {
|
|
|
* @param ossId OSS对象ID
|
|
|
*/
|
|
|
@SaCheckPermission("system:oss:download")
|
|
|
+ @Log(title = "OSS对象存储", businessType = BusinessType.EXPORT)
|
|
|
@GetMapping("/download/{ossId}")
|
|
|
public void download(@PathVariable Long ossId, HttpServletResponse response) throws IOException {
|
|
|
ossService.download(ossId, response);
|