Skip to content

Commit

Permalink
fix:删除好友
Browse files Browse the repository at this point in the history
  • Loading branch information
danmuking committed May 12, 2024
1 parent 3333054 commit 9f0062d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/friend_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ func GetFriendListService(uid int64, pageReq pkgReq.PageReq) (resp.ResponseData,
// 获取 UserFriend 表中 uid = uid 的好友的uid组成的集合
db := dal.DB
userFriend := make([]model.UserFriend, 0)
condition := []interface{}{"uid=?", strconv.FormatInt(uid, 10)}
condition := []interface{}{"uid=? and delete_status=?", strconv.FormatInt(uid, 10), enum.NORMAL}
pageResp, err := utils.Paginate(db, pageReq, &userFriend, "create_time", false, condition...)
if err != nil {
global.Logger.Errorf("分页查询失败 %v", err)
Expand Down

0 comments on commit 9f0062d

Please sign in to comment.