This commit is contained in:
2025-12-14 02:38:35 +07:00
commit 5343a8f2c3
84 changed files with 7406 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
from datetime import datetime
from pydantic import BaseModel
from app.schemas.user import UserPublic
class ActivityResponse(BaseModel):
id: int
type: str
user: UserPublic
data: dict | None = None
created_at: datetime
class Config:
from_attributes = True
class FeedResponse(BaseModel):
items: list[ActivityResponse]
total: int
has_more: bool