feat(chat): 聊天列表新增未读消息总数
This commit is contained in:
@@ -4,12 +4,11 @@
|
||||
# @Software : PyCharm
|
||||
# @Author : xingc
|
||||
# @Desc :
|
||||
from datetime import datetime
|
||||
from typing import Literal, Optional, List
|
||||
|
||||
from pydantic import BaseModel, conint, UUID4
|
||||
|
||||
from core.base.schema import MessageType
|
||||
from core.base.schema import MessageType, Paginated
|
||||
from core.routers.user.schema import LiteUser
|
||||
|
||||
|
||||
@@ -32,6 +31,10 @@ class PreviewMessage(BaseModel):
|
||||
content: str
|
||||
|
||||
|
||||
class ChatPaginated(Paginated):
|
||||
unread_messages_total: int
|
||||
|
||||
|
||||
class ChatUnreadOut(BaseModel):
|
||||
chat_guid: UUID4
|
||||
created_at: str
|
||||
|
||||
Reference in New Issue
Block a user