diff --git a/cmd/api/main.go b/cmd/api/main.go index b39a294a8..d56919009 100644 --- a/cmd/api/main.go +++ b/cmd/api/main.go @@ -12,12 +12,11 @@ import ( "github.com/OpenIMSDK/Open-IM-Server/internal/api" "github.com/OpenIMSDK/Open-IM-Server/pkg/common/cmd" "github.com/OpenIMSDK/Open-IM-Server/pkg/common/config" + "github.com/OpenIMSDK/Open-IM-Server/pkg/common/constant" "github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/cache" "github.com/OpenIMSDK/Open-IM-Server/pkg/common/log" "github.com/OpenIMSDK/Open-IM-Server/pkg/discoveryregistry" "github.com/OpenIMSDK/openKeeper" - - "github.com/OpenIMSDK/Open-IM-Server/pkg/common/constant" ) func main() { diff --git a/internal/api/friend.go b/internal/api/friend.go index 4c47477e3..b31dda45b 100644 --- a/internal/api/friend.go +++ b/internal/api/friend.go @@ -50,7 +50,7 @@ func (o *Friend) GetSelfApplyList(c *gin.Context) { } func (o *Friend) GetFriendList(c *gin.Context) { - a2r.Call(friend.FriendClient.GetDesignatedFriends, o.client, c) + a2r.Call(friend.FriendClient.GetPaginationFriends, o.client, c) } func (o *Friend) SetFriendRemark(c *gin.Context) {