feat: Add image and record stream download actions

Introduces BaseDownloadStream as a shared base class for streaming file downloads. Adds DownloadFileImageStream and DownloadFileRecordStream for image and audio file streaming with support for format conversion. Refactors DownloadFileStream to use the new base class, and updates action registration and router to include the new actions.
This commit is contained in:
手瓜一十雪 committed 2025-10-12 15:50:34 +08:00
1 parent 2afdb2a0da
commit 381d320967
6 files changed
+268 -87

No files matched your search

+2
View File
@@ -17,6 +17,8 @@ export const ActionName = {
TestDownloadStream: 'test_download_stream',
UploadFileStream: 'upload_file_stream',
DownloadFileStream: 'download_file_stream',
DownloadFileRecordStream: 'download_file_record_stream',
DownloadFileImageStream: 'download_file_image_stream',
DelGroupAlbumMedia: 'del_group_album_media',
SetGroupAlbumMediaLike: 'set_group_album_media_like',