Files
open-im-server/internal/rpc/friend/other.go
T

26 lines
700 B
Go
Raw Normal View History

2023-01-13 18:20:48 +08:00
package friend
import (
2023-01-17 17:31:22 +08:00
server_api_params "Open_IM/pkg/proto/sdk_ws"
2023-01-13 18:20:48 +08:00
"context"
"errors"
)
2023-01-17 17:31:22 +08:00
func GetUserInfo(ctx context.Context, userID string) (*server_api_params.PublicUserInfo, error) {
2023-01-13 18:20:48 +08:00
return nil, errors.New("TODO:GetUserInfo")
}
2023-01-16 15:53:40 +08:00
2023-01-17 17:31:22 +08:00
func GetPublicUserInfoBatch(ctx context.Context, userIDs []string) ([]*server_api_params.PublicUserInfo, error) {
if len(userIDs) == 0 {
return []*server_api_params.PublicUserInfo{}, nil
}
return nil, errors.New("TODO:GetUserInfo")
}
func GetUserInfoList(ctx context.Context, userIDs []string) ([]*server_api_params.UserInfo, error) {
if len(userIDs) == 0 {
return []*server_api_params.UserInfo{}, nil
}
2023-01-16 15:53:40 +08:00
return nil, errors.New("TODO:GetUserInfo")
}