feat(search): add unified global search for users/chats/messages
Some checks failed
CI / test (push) Failing after 24s
Some checks failed
CI / test (push) Failing after 24s
This commit is contained in:
12
app/search/schemas.py
Normal file
12
app/search/schemas.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from pydantic import BaseModel
|
||||
|
||||
from app.chats.schemas import ChatDiscoverRead
|
||||
from app.messages.schemas import MessageRead
|
||||
from app.users.schemas import UserSearchRead
|
||||
|
||||
|
||||
class GlobalSearchRead(BaseModel):
|
||||
users: list[UserSearchRead]
|
||||
chats: list[ChatDiscoverRead]
|
||||
messages: list[MessageRead]
|
||||
|
||||
Reference in New Issue
Block a user