1
0

refactor structure for sane workflow :)

This commit is contained in:
2025-08-04 08:20:59 +09:00
parent 6dbc4a4e54
commit 540a84e772
4 changed files with 57 additions and 45 deletions

1
models/__init__.py Normal file
View File

@@ -0,0 +1 @@
from .post import *

17
models/post.py Normal file
View File

@@ -0,0 +1,17 @@
from typing import Optional
from dataclasses import dataclass
from datetime import datetime
from bs4 import Tag
@dataclass
class Post:
boardId: str
postId: int
authorId: Optional[str] = None
authorName: Optional[str] = None
category: Optional[str] = None
title: Optional[str] = None
body: Optional[Tag] = None
created_at: Optional[datetime] = None