更新通讯录时,清除所有的群成员信息,更新
This commit is contained in:
@@ -574,6 +574,17 @@ class ContactsDBOperator(BaseDBOperator):
|
||||
self.LOG.error(f"删除群聊{chatroom_id}信息失败: {e}")
|
||||
return False
|
||||
|
||||
def delete_chatroom_members_info(self, chatroom_id: str) -> bool:
|
||||
"""删除群成员信息"""
|
||||
try:
|
||||
sql = "DELETE FROM t_chatroom_member WHERE chatroom_id = %s"
|
||||
self.execute_update(sql, (chatroom_id,))
|
||||
self.LOG.info(f"成功删除群聊 {chatroom_id} 的成员信息")
|
||||
return True
|
||||
except Exception as e:
|
||||
self.LOG.error(f"删除群聊{chatroom_id}的成员信息失败: {e}")
|
||||
return False
|
||||
|
||||
# 新增获取群列表接口
|
||||
def get_chatroom_list(self) -> List[dict]:
|
||||
"""获取群列表"""
|
||||
|
||||
Reference in New Issue
Block a user