25 行
497 B
Python
25 行
497 B
Python
from __future__ import annotations
|
|
from pydantic import BaseModel
|
|
from typing import Any
|
|
|
|
|
|
class GuideConfigSchema(BaseModel):
|
|
page_intro: str | None = None
|
|
|
|
|
|
class GuideSectionSchema(BaseModel):
|
|
section_id: str
|
|
title: str | None = None
|
|
subtitle: str | None = None
|
|
icon: str | None = None
|
|
content: str | None = None
|
|
data: Any = None
|
|
|
|
|
|
class GuideSectionResponse(GuideSectionSchema):
|
|
id: int
|
|
sort_order: int = 0
|
|
|
|
class Config:
|
|
from_attributes = True
|