From 34d0b2cf293dc142547444486dc19fa90392dd41 Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Fri, 13 Dec 2024 14:20:18 +0800 Subject: [PATCH] update --- app/hdl/hdl_add_friend.go | 8 +------- app/md/md_add_friend.go | 4 +--- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/app/hdl/hdl_add_friend.go b/app/hdl/hdl_add_friend.go index 9cdf1f3..2dce399 100644 --- a/app/hdl/hdl_add_friend.go +++ b/app/hdl/hdl_add_friend.go @@ -680,15 +680,9 @@ func MyFansUserList(c *gin.Context) { InviteTime: v["invite_time"], }) } - var invite int - if userRelates != nil { - invite = len(*userRelates) - } resp := md.MyFansUserListResp{ - List: data, - Invited: invite, - Active: len(data), + List: data, } e.OutSuc(c, resp, nil) diff --git a/app/md/md_add_friend.go b/app/md/md_add_friend.go index 10d0432..d6890ce 100644 --- a/app/md/md_add_friend.go +++ b/app/md/md_add_friend.go @@ -67,9 +67,7 @@ type OneLineUserNode struct { } type MyFansUserListResp struct { - List []OneLineUserNode `json:"list"` - Invited int `json:"invited"` - Active int `json:"active"` + List []OneLineUserNode `json:"list"` } type SpaceListNode struct {