fix schemas
This commit is contained in:
parent
8f8ad7ccd4
commit
09c84d021d
@ -37,6 +37,7 @@ class Scheduler(metaclass=Singleton):
|
|||||||
})
|
})
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
return
|
||||||
# CookieCloud定时同步
|
# CookieCloud定时同步
|
||||||
if settings.COOKIECLOUD_INTERVAL:
|
if settings.COOKIECLOUD_INTERVAL:
|
||||||
self._scheduler.add_job(CookieCloudChain().process,
|
self._scheduler.add_job(CookieCloudChain().process,
|
||||||
|
@ -117,7 +117,7 @@ class MediaInfo(BaseModel):
|
|||||||
|
|
||||||
class TorrentInfo(BaseModel):
|
class TorrentInfo(BaseModel):
|
||||||
# 站点ID
|
# 站点ID
|
||||||
site: int = None
|
site: Optional[int] = None
|
||||||
# 站点名称
|
# 站点名称
|
||||||
site_name: Optional[str] = None
|
site_name: Optional[str] = None
|
||||||
# 站点Cookie
|
# 站点Cookie
|
||||||
|
@ -5,13 +5,13 @@ from pydantic import BaseModel
|
|||||||
|
|
||||||
class Site(BaseModel):
|
class Site(BaseModel):
|
||||||
# ID
|
# ID
|
||||||
id: int
|
id: Optional[int]
|
||||||
# 站点名称
|
# 站点名称
|
||||||
name: str
|
name: Optional[str]
|
||||||
# 站点主域名Key
|
# 站点主域名Key
|
||||||
domain: str
|
domain: Optional[str]
|
||||||
# 站点地址
|
# 站点地址
|
||||||
url: str
|
url: Optional[str]
|
||||||
# 站点优先级
|
# 站点优先级
|
||||||
pri: Optional[int] = 0
|
pri: Optional[int] = 0
|
||||||
# RSS地址
|
# RSS地址
|
||||||
|
@ -4,16 +4,16 @@ from pydantic import BaseModel
|
|||||||
|
|
||||||
|
|
||||||
class Subscribe(BaseModel):
|
class Subscribe(BaseModel):
|
||||||
id: int
|
id: Optional[int]
|
||||||
# 订阅名称
|
# 订阅名称
|
||||||
name: str
|
name: Optional[str]
|
||||||
# 订阅年份
|
# 订阅年份
|
||||||
year: str
|
year: Optional[str]
|
||||||
# 订阅类型 电影/电视剧
|
# 订阅类型 电影/电视剧
|
||||||
type: str
|
type: Optional[str]
|
||||||
# 搜索关键字
|
# 搜索关键字
|
||||||
keyword: Optional[str]
|
keyword: Optional[str]
|
||||||
tmdbid: int
|
tmdbid: Optional[int]
|
||||||
doubanid: Optional[str]
|
doubanid: Optional[str]
|
||||||
# 季号
|
# 季号
|
||||||
season: Optional[int]
|
season: Optional[int]
|
||||||
@ -22,7 +22,7 @@ class Subscribe(BaseModel):
|
|||||||
# 背景图
|
# 背景图
|
||||||
backdrop: Optional[str]
|
backdrop: Optional[str]
|
||||||
# 评分
|
# 评分
|
||||||
vote: int = 0
|
vote: Optional[int]
|
||||||
# 描述
|
# 描述
|
||||||
description: Optional[str]
|
description: Optional[str]
|
||||||
# 过滤规则
|
# 过滤规则
|
||||||
@ -40,7 +40,7 @@ class Subscribe(BaseModel):
|
|||||||
# 附加信息
|
# 附加信息
|
||||||
note: Optional[str]
|
note: Optional[str]
|
||||||
# 状态:N-新建, R-订阅中
|
# 状态:N-新建, R-订阅中
|
||||||
state: str
|
state: Optional[str]
|
||||||
|
|
||||||
class Config:
|
class Config:
|
||||||
orm_mode = True
|
orm_mode = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user