first init
This commit is contained in:
33
core/routers/im/routes.py
Normal file
33
core/routers/im/routes.py
Normal file
@@ -0,0 +1,33 @@
|
||||
# -*- coding = utf-8 -*-
|
||||
# @Time : 2025/2/13 下午4:53
|
||||
# @File : routes.py
|
||||
# @Software : PyCharm
|
||||
# @Author : xingc
|
||||
# @Desc :
|
||||
from typing import Annotated
|
||||
|
||||
from fastapi import APIRouter, Query
|
||||
|
||||
im_router = APIRouter(prefix='/im', tags=['聊天模块'])
|
||||
|
||||
|
||||
# @im_router.get('/chat/{user_id}/messages/')
|
||||
# def get_single_chat_messages(
|
||||
# user_id: int,
|
||||
# limit: Annotated[int, Query(ge=1, le=200)] = 20,
|
||||
# cursor: int = -1,
|
||||
# ):
|
||||
# pass
|
||||
#
|
||||
#
|
||||
# @im_router.get('/chats/messages/')
|
||||
# def get_chats_messages(
|
||||
# limit: Annotated[int, Query(ge=1, le=200)] = 100,
|
||||
# cursor: int = -1,
|
||||
# ):
|
||||
# pass
|
||||
#
|
||||
#
|
||||
# @im_router.websocket('/chat')
|
||||
# def get_chat():
|
||||
# pass
|
||||
Reference in New Issue
Block a user