1.6
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user