Files
life-echo/api/app/features/memoir/schemas.py
2026-03-20 15:15:35 +08:00

17 lines
340 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
from pydantic import BaseModel
class UpdateBookRequest(BaseModel):
title: str
subtitle: str | None = None
class ExportPdfRequest(BaseModel):
book_id: str
class SetChapterStoryOrderRequest(BaseModel):
"""按顺序绑定本章节要收录的 stories覆盖原有 chapter_story_links"""
story_ids: list[str]