mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 07:27:15 +08:00
集成CookieCloud服务端
This commit is contained in:
@@ -5,6 +5,7 @@ from .site import *
|
||||
from .subscribe import *
|
||||
from .context import *
|
||||
from .servarr import *
|
||||
from .servcookie import *
|
||||
from .plugin import *
|
||||
from .history import *
|
||||
from .dashboard import *
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
from typing import Union
|
||||
|
||||
from fastapi import Query
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class CookieData(BaseModel):
|
||||
uuid: str = Query(min_length=5, pattern="^[a-zA-Z0-9]+$")
|
||||
encrypted: str = Query(min_length=1, max_length=1024 * 1024 * 50)
|
||||
|
||||
|
||||
class CookiePassword(BaseModel):
|
||||
password: str
|
||||
Reference in New Issue
Block a user