刘涛 8c0a5f489d Initial commit: hulai admin API backend
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-22 22:01:23 +08:00

27 行
566 B
Python

from __future__ import annotations
from pydantic import BaseModel
class CalendarEventSchema(BaseModel):
date: str | None = None
title: str
description: str | None = None
class CalendarMonthSchema(BaseModel):
year: int
month: int
title: str | None = None
description: str | None = None
weather: str | None = None
highlights: list[str] = []
events: list[CalendarEventSchema] = []
is_available: bool = True
class CalendarMonthResponse(CalendarMonthSchema):
id: int
class Config:
from_attributes = True