(
data: IDsData,
file_service: FileService,
)
| 184 | |
| 185 | |
| 186 | async def batch_delete_files( |
| 187 | data: IDsData, |
| 188 | file_service: FileService, |
| 189 | ): |
| 190 | if not data.ids: |
| 191 | raise HTTPException(status_code=400, detail="请选择要删除的文件") |
| 192 | result = await file_service.delete_files(data.ids) |
| 193 | return APIResponse(detail=result) |
| 194 | |
| 195 | |
| 196 | @admin_api.delete("/file/batch-delete") |
no test coverage detected