增加注释

This commit is contained in:
xaoyaoo 2024-02-04 11:35:13 +08:00
parent 9e2f305921
commit ab1625d7aa

View File

@ -135,7 +135,7 @@ def contact_list():
@api.route('/api/chat_count', methods=["GET", 'POST']) @api.route('/api/chat_count', methods=["GET", 'POST'])
def chat_count(): def chat_count():
""" """
获取联系人列表 获取每个联系人的聊天记录数量
:return: :return:
""" """
try: try:
@ -154,7 +154,7 @@ def chat_count():
@api.route('/api/contact_count_list', methods=["GET", 'POST']) @api.route('/api/contact_count_list', methods=["GET", 'POST'])
def contact_count_list(): def contact_count_list():
""" """
获取联系人列表 获取联系人列表以及聊天记录数量
:return: :return:
""" """
try: try:
@ -194,6 +194,10 @@ def contact_count_list():
@api.route('/api/msgs_user_list',methods=['GET','POST']) @api.route('/api/msgs_user_list',methods=['GET','POST'])
@error9999 @error9999
def get_msg_user_list(): def get_msg_user_list():
"""
获取消息联系人列表
:return:
"""
msg_path = request.headers.get("msg_path") msg_path = request.headers.get("msg_path")
micro_path = request.headers.get("micro_path") micro_path = request.headers.get("micro_path")
if not msg_path: if not msg_path: