集成CookieCloud服务端

This commit is contained in:
ljmeng
2024-03-16 04:48:34 +08:00
parent 399d26929d
commit 1ae220c654
9 changed files with 244 additions and 64 deletions

13
app/schemas/servcookie.py Normal file
View 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