Documentation ¶
Index ¶
- type FriendService
- func (s *FriendService) AddFriend(ctx context.Context, req *friendpb.AddFriendRequest) (*friendpb.AddFriendResponse, error)
- func (s *FriendService) ConfirmFriendRequest(ctx context.Context, req *friendpb.ConfirmFriendRequestReq) (*responsepb.BaseResponse, error)
- func (s *FriendService) GetFriend(ctx context.Context, req *friendpb.BaseFriendRequest) (*friendpb.GetFriendResponse, error)
- func (s *FriendService) GetFriendRequest(ctx context.Context, req *friendpb.BaseFriendRequest) (*friendpb.GetFriendRequestResponse, error)
- func (s *FriendService) IsFriend(ctx context.Context, req *friendpb.BaseFriendRequest) (*responsepb.BaseResponse, error)
- func (s *FriendService) QueryFriendList(ctx context.Context, req *friendpb.QueryFriendListRequest) (*friendpb.QueryFriendListResponse, error)
- func (s *FriendService) QueryFriendRequestList(ctx context.Context, req *friendpb.QueryFriendRequestListRequest) (*friendpb.QueryFriendRequestListResponse, error)
- func (s *FriendService) UpdateFriendStatus(ctx context.Context, req *friendpb.UpdateFriendStatusRequest) (*responsepb.BaseResponse, error)
- type UserService
- func (s *UserService) CreateUser(ctx context.Context, req *userv1.CreateUserRequest) (*userv1.UserInternalResponse, error)
- func (s *UserService) GetUser(ctx context.Context, req *userv1.GetUserInfoRequest) (*userv1.UserInternalResponse, error)
- func (s *UserService) QueryUser(ctx context.Context, req *userv1.QueryUserRequest) (*userv1.UserInternalResponse, error)
- func (s *UserService) UpdateUser(ctx context.Context, req *userv1.UpdateUserRequest) (*userv1.UserInternalResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FriendService ¶
type FriendService struct { friendpb.UnimplementedFriendServiceServer // contains filtered or unexported fields }
FriendService implements friendpb.FriendServiceServer
func GetFriendService ¶
func GetFriendService() *FriendService
func (*FriendService) AddFriend ¶
func (s *FriendService) AddFriend(ctx context.Context, req *friendpb.AddFriendRequest) ( *friendpb.AddFriendResponse, error)
func (*FriendService) ConfirmFriendRequest ¶
func (s *FriendService) ConfirmFriendRequest(ctx context.Context, req *friendpb.ConfirmFriendRequestReq) ( *responsepb.BaseResponse, error)
func (*FriendService) GetFriend ¶
func (s *FriendService) GetFriend(ctx context.Context, req *friendpb.BaseFriendRequest) ( *friendpb.GetFriendResponse, error)
func (*FriendService) GetFriendRequest ¶
func (s *FriendService) GetFriendRequest(ctx context.Context, req *friendpb.BaseFriendRequest) ( *friendpb.GetFriendRequestResponse, error)
func (*FriendService) IsFriend ¶
func (s *FriendService) IsFriend(ctx context.Context, req *friendpb.BaseFriendRequest) ( *responsepb.BaseResponse, error)
func (*FriendService) QueryFriendList ¶
func (s *FriendService) QueryFriendList(ctx context.Context, req *friendpb.QueryFriendListRequest) ( *friendpb.QueryFriendListResponse, error)
func (*FriendService) QueryFriendRequestList ¶
func (s *FriendService) QueryFriendRequestList(ctx context.Context, req *friendpb.QueryFriendRequestListRequest) ( *friendpb.QueryFriendRequestListResponse, error)
func (*FriendService) UpdateFriendStatus ¶
func (s *FriendService) UpdateFriendStatus(ctx context.Context, req *friendpb.UpdateFriendStatusRequest) ( *responsepb.BaseResponse, error)
type UserService ¶
type UserService struct { userv1.UnimplementedUserServiceServer // contains filtered or unexported fields }
UserService implements userv1.UserServiceServer
func GetUserService ¶
func GetUserService() *UserService
func (*UserService) CreateUser ¶
func (s *UserService) CreateUser(ctx context.Context, req *userv1.CreateUserRequest) (*userv1.UserInternalResponse, error)
func (*UserService) GetUser ¶
func (s *UserService) GetUser(ctx context.Context, req *userv1.GetUserInfoRequest) (*userv1.UserInternalResponse, error)
func (*UserService) QueryUser ¶
func (s *UserService) QueryUser(ctx context.Context, req *userv1.QueryUserRequest) (*userv1.UserInternalResponse, error)
func (*UserService) UpdateUser ¶
func (s *UserService) UpdateUser(ctx context.Context, req *userv1.UpdateUserRequest) (*userv1.UserInternalResponse, error)
Click to show internal directories.
Click to hide internal directories.