modify dictory

This commit is contained in:
wangchuxiao
2023-03-06 12:04:44 +08:00
parent 120477c092
commit 77b2d4aad0
3 changed files with 19 additions and 2 deletions
+5
View File
@@ -35,6 +35,7 @@ type FriendDatabase interface {
PageFriendRequestToMe(ctx context.Context, userID string, pageNumber, showNumber int32) (friends []*relation.FriendRequestModel, total int64, err error)
// 获取某人指定好友的信息
FindFriendsWithError(ctx context.Context, ownerUserID string, friendUserIDs []string) (friends []*relation.FriendModel, err error)
GetFriendIDs(ctx context.Context, ownerUserID string) (friendUserIDs []string, err error)
}
type friendDatabase struct {
@@ -238,3 +239,7 @@ func (f *friendDatabase) FindFriendsWithError(ctx context.Context, ownerUserID s
}
return
}
func (f *friendDatabase) GetFriendIDs(ctx context.Context, ownerUserID string) (friendUserIDs []string, err error) {
return f.friend.FindFriendUserIDs(ctx, ownerUserID)
}