🎨 优化被移除群聊通知逻辑

This commit is contained in:
李寻欢
2024-07-10 16:32:18 +08:00
parent 4d3bef7cf5
commit 1d41fc5a6b
2 changed files with 21 additions and 2 deletions

View File

@@ -37,6 +37,16 @@ func GetAllFriend() (friends, groups []vo.FriendItem, err error) {
return
}
// GetFriendInfoById
// @description: 通过wxId获取好友信息
// @param wxId
// @return ent
// @return err
func GetFriendInfoById(wxId string) (ent entity.Friend, err error) {
err = client.MySQL.Where("wxid = ?", wxId).First(&ent).Error
return
}
// GetAllEnableAI
// @description: 取出所有启用了AI的好友或群组
// @return []entity.Friend