add Thread class

This commit is contained in:
agatha 2024-03-31 22:55:50 -04:00
parent 5512ced1a1
commit ef7ddd5ec2

View File

@ -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 = []