This commit is contained in:
2025-03-04 00:11:29 +08:00
parent d3ffd27f00
commit 6ac81045af
4 changed files with 44 additions and 16 deletions

View File

@@ -4,7 +4,7 @@ from .models import Tutorial
class TutorialSlim(Schema):
display: str
display: int
title: str
is_public: bool
@@ -16,13 +16,12 @@ class TutorialAll(ModelSchema):
class TutorialReturn(Schema):
total: int
list: List[TutorialSlim]
first: Optional[TutorialAll]
class TutorialIn(Schema):
display: str
display: int
title: str
content: str
is_public: bool = False