34 lines
696 B
Python
34 lines
696 B
Python
# -*- 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
|