add Thread class
This commit is contained in:
parent
5512ced1a1
commit
ef7ddd5ec2
@ -20,6 +20,15 @@ class PostCreate(BaseModel):
|
|||||||
content: str
|
content: str
|
||||||
|
|
||||||
|
|
||||||
|
class Thread:
|
||||||
|
id: int
|
||||||
|
title: str
|
||||||
|
|
||||||
|
def __init__(self, id, title):
|
||||||
|
self.id = id
|
||||||
|
self.title = title
|
||||||
|
|
||||||
|
|
||||||
POSTS = []
|
POSTS = []
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user