This website works better with JavaScript.
Home
Explore
Help
Sign In
EggPlanet
/
egg_app
Watch
3
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
update
tmp
shenjiachi
1 week ago
parent
74eb6602dd
commit
34d0b2cf29
2 changed files
with
2 additions
and
10 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-7
app/hdl/hdl_add_friend.go
+1
-3
app/md/md_add_friend.go
+ 1
- 7
app/hdl/hdl_add_friend.go
View File
@@ -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)
+ 1
- 3
app/md/md_add_friend.go
View File
@@ -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 {
Write
Preview
Loading…
Cancel
Save