mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-06 07:56:52 +08:00
init
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
from typing import Optional
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class Site(BaseModel):
|
||||
id: int
|
||||
name: str
|
||||
domain: str
|
||||
url: str
|
||||
pri: Optional[int] = 0
|
||||
rss: Optional[str] = None
|
||||
cookie: Optional[str] = None
|
||||
ua: Optional[str] = None
|
||||
filter: Optional[str] = None
|
||||
note: Optional[str] = None
|
||||
limit_interval: Optional[int] = 0
|
||||
limit_count: Optional[int] = 0
|
||||
limit_seconds: Optional[int] = 0
|
||||
is_active: Optional[str] = 'N'
|
||||
|
||||
class Config:
|
||||
orm_mode = True
|
||||
Reference in New Issue
Block a user