Files
2025-04-29 18:09:00 +08:00

14 lines
372 B
Python
Raw Permalink 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.
"""定义生成最终文档的BaseModel"""
from typing import List
from ninja import Schema
# 定义文档片段输入的Schema用于输入Schema嵌套
class FragmentItemInputSchema(Schema):
name: str
isCover: bool = True # 默认为需要覆盖生成文档
# 输入Schema
class SeitaiInputSchema(Schema):
id: int
frag: List[FragmentItemInputSchema]