This commit is contained in:
2026-06-13 17:57:43 +08:00
parent 68678304ff
commit a0f441d8ae
28 changed files with 1933 additions and 2 deletions
+13
View File
@@ -0,0 +1,13 @@
"""时光胶囊 Schema"""
from datetime import datetime
from pydantic import BaseModel, Field
class CapsuleCreate(BaseModel):
recipient_id: str
title: str = Field(..., min_length=1, max_length=100)
content: str = Field(..., min_length=1, max_length=5000)
unlock_at: datetime
mood: str | None = Field(None, max_length=20)