This commit is contained in:
xuyue committed 2025-03-04 00:11:29 +08:00
1 parent d3ffd27f00
commit 6ac81045af
4 files changed
+44 -16

No files matched your search

+2 -3
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