mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-05-16 13:55:28 +08:00
14 lines
411 B
Python
14 lines
411 B
Python
from typing import Optional
|
|
|
|
from pydantic import BaseModel, Field
|
|
|
|
|
|
class DownloadTask(BaseModel):
|
|
"""
|
|
下载任务
|
|
"""
|
|
download_id: Optional[str] = Field(None, description="任务ID")
|
|
downloader: Optional[str] = Field(None, description="下载器")
|
|
path: Optional[str] = Field(None, description="下载路径")
|
|
completed: Optional[bool] = Field(False, description="是否完成")
|