"""心情叶 Schema""" from pydantic import BaseModel, Field class LeafUpdate(BaseModel): mood: str | None = Field(None, max_length=20) note: str | None = Field(None, max_length=500)