feat(event): add source tracking in download event

This commit is contained in:
InfinityPacer
2024-12-10 18:50:50 +08:00
parent eea8060182
commit 6d9595b643
3 changed files with 27 additions and 5 deletions
+1
View File
@@ -165,6 +165,7 @@ class ResourceSelectionEventData(BaseModel):
# 输入参数
contexts: Any = Field(None, description="待选择的资源上下文列表")
downloader: Optional[str] = Field(None, description="下载器")
origin: Optional[str] = Field(None, description="来源")
# 输出参数
updated: bool = Field(False, description="是否已更新")