集成CookieCloud服务端
This commit is contained in:
13
app/schemas/servcookie.py
Normal file
13
app/schemas/servcookie.py
Normal file
@ -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