service

package
v0.0.0-...-5e02c43 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadMatchedPushServer

func LoadMatchedPushServer(ctx context.Context) (string, error)

Types

type FriendService

type FriendService struct{}

func GetFriendService

func GetFriendService() *FriendService

func (*FriendService) AcceptFriend

func (*FriendService) AddFriend

func (*FriendService) BlockFriend

func (s *FriendService) BlockFriend(ctx context.Context, req *dto.BaseFriendRequest) error

func (*FriendService) DeleteFriend

func (s *FriendService) DeleteFriend(ctx context.Context, req *dto.BaseFriendRequest) error

func (*FriendService) ListUserRelation

func (s *FriendService) ListUserRelation(ctx context.Context, uid types.ID, paging *web.Paging) (
	[]*dto.Friend, error)

func (*FriendService) QueryFriendRequestList

func (s *FriendService) QueryFriendRequestList(ctx context.Context, req *dto.QueryFriendRequestListRequest) (
	[]*dto.FriendRequest, error)

func (*FriendService) RejectFriend

func (*FriendService) UnblockFriend

func (s *FriendService) UnblockFriend(ctx context.Context, req *dto.BaseFriendRequest) error

type GroupService

type GroupService struct {
}

func GetGroupService

func GetGroupService() *GroupService

func (*GroupService) AddGroupMember

func (s *GroupService) AddGroupMember(ctx context.Context, req *dto.ChangeGroupMemberRequest) (int, error)

func (*GroupService) CreateGroup

func (s *GroupService) CreateGroup(ctx context.Context, req *dto.CreateGroupRequest) (*dto.Group, error)

func (*GroupService) DeleteGroup

func (s *GroupService) DeleteGroup(ctx context.Context, req *dto.DeleteGroupRequest) error

func (*GroupService) GetGroup

func (s *GroupService) GetGroup(ctx context.Context, req *dto.GetGroupRequest) (*dto.Group, error)

func (*GroupService) ListGroup

func (s *GroupService) ListGroup(ctx context.Context, uid types.ID, paging *web.Paging) ([]*dto.Group, error)

func (*GroupService) RemoveGroupMember

func (s *GroupService) RemoveGroupMember(ctx context.Context, req *dto.ChangeGroupMemberRequest) (int, error)

func (*GroupService) UpdateGroup

func (s *GroupService) UpdateGroup(ctx context.Context, req *dto.UpdateGroupRequest) (*dto.Group, error)

type OfflineMessageService

type OfflineMessageService struct {
}

func GetOfflineMessageService

func GetOfflineMessageService() *OfflineMessageService

func (*OfflineMessageService) QueryOfflineMsg

func (s *OfflineMessageService) QueryOfflineMsg(ctx context.Context, req *dto.QueryOfflineMessageReq) (
	[]*dto.Message, int32, error)

type SendMessageService

type SendMessageService struct{}

func GetSendMessageService

func GetSendMessageService() *SendMessageService

func (*SendMessageService) Broadcast

func (*SendMessageService) SendMessage

type UserService

type UserService struct {
	// contains filtered or unexported fields
}

func GetUserService

func GetUserService() *UserService

func (*UserService) Login

func (s *UserService) Login(ctx context.Context, req *dto.UserLoginRequest) (*dto.User, error)

Login check user login status and return user info

func (*UserService) QueryUserInfo

func (s *UserService) QueryUserInfo(ctx context.Context, req *dto.QueryUserRequest) (*dto.User, error)

func (*UserService) Register

func (s *UserService) Register(ctx context.Context, req *dto.CreateUserRequest) (*dto.User, error)

Register register user.

func (*UserService) UpdateUser

func (s *UserService) UpdateUser(ctx context.Context, req *dto.UpdateUserRequest) (*dto.User, error)

UpdateUser update user info.

Jump to

Keyboard shortcuts

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