Refactor extends actions to use new examples module

Replaced imports of ActionExamples with ExtendsActionsExamples in all extends actions. Updated action summary, description, tags, and example references for consistency and clarity across actions. This improves maintainability and aligns with the new examples structure.
This commit is contained in:
手瓜一十雪
2026-01-25 18:23:19 +08:00
parent 8623fb1df0
commit 5b80a8576f
14 changed files with 69 additions and 28 deletions

View File

@@ -17,6 +17,9 @@ export class DownloadFileStream extends BaseDownloadStream<DownloadFileStreamPay
override actionName = ActionName.DownloadFileStream;
override payloadSchema = DownloadFileStreamPayloadSchema;
override returnSchema = Type.Any({ description: '下载结果 (流式)' });
override actionSummary = '下载文件流';
override actionDescription = '以流式方式从网络或本地下载文件';
override actionTags = ['流式接口'];
override useStream = true;
async _handle (payload: DownloadFileStreamPayload, _adaptername: string, _config: NetworkAdapterConfig, req: OneBotRequestToolkit): Promise<StreamPacket<DownloadResult>> {