18 lines
280 B
Python
18 lines
280 B
Python
from datetime import datetime
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class NotificationOut(BaseModel):
|
|
id: int
|
|
type: str
|
|
title: str
|
|
content: str | None
|
|
related_id: int | None
|
|
is_read: bool
|
|
created_at: datetime
|
|
|
|
|
|
class UnreadCount(BaseModel):
|
|
count: int
|