service

package
v0.0.0-...-c291592 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

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 (*FriendService) ConfirmFriendRequest

func (s *FriendService) ConfirmFriendRequest(ctx context.Context, req *friendpb.ConfirmFriendRequestRequest) (
	*errors.Error, error)

func (*FriendService) GetFriend

func (*FriendService) GetFriendRequest

func (*FriendService) IsFriend

func (*FriendService) QueryFriendList

func (*FriendService) UpdateFriendStatus

func (s *FriendService) UpdateFriendStatus(ctx context.Context, req *friendpb.UpdateFriendStatusRequest) (
	*errors.Error, error)

UpdateFriendStatus update friend status. Second error is grpc error, not business error.

type GroupService

type GroupService struct {
	grouppb.UnimplementedGroupServiceServer
	// contains filtered or unexported fields
}

func GetGroupService

func GetGroupService() *GroupService

func (*GroupService) CreateGroup

func (*GroupService) DeleteGroup

func (s *GroupService) DeleteGroup(ctx context.Context, req *grouppb.DeleteGroupRequest) (*errors.Error, error)

func (*GroupService) GetGroup

func (*GroupService) ListGroups

func (*GroupService) RemoveGroupMember

func (*GroupService) UpdateGroup

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 (*UserService) GetUser

func (*UserService) QueryUser

func (*UserService) UpdateUser

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL