service

package
v0.0.0-...-ec2b105 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 8 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 {
	// contains filtered or unexported fields
}

func NewFriendService

func NewFriendService(repo repository.IFriendRepository) *FriendService

func (*FriendService) AdminApproveFriend

func (s *FriendService) AdminApproveFriend(ctx context.Context, id string) (string, error)

func (*FriendService) AdminDeleteFriend

func (s *FriendService) AdminDeleteFriend(ctx context.Context, id string) error

func (*FriendService) AdminGetFriends

func (s *FriendService) AdminGetFriends(ctx context.Context, pageDTO dto.PageDTO) ([]domain.Friend, int64, error)

func (*FriendService) AdminRejectFriend

func (s *FriendService) AdminRejectFriend(ctx context.Context, id string) (string, error)

func (*FriendService) AdminUpdateFriend

func (s *FriendService) AdminUpdateFriend(ctx context.Context, friend domain.Friend) error

func (*FriendService) ApplyForFriend

func (s *FriendService) ApplyForFriend(ctx context.Context, friend domain.Friend) error

func (*FriendService) GetFriends

func (s *FriendService) GetFriends(ctx context.Context) ([]domain.Friend, error)

type IFriendService

type IFriendService interface {
	GetFriends(ctx context.Context) ([]domain.Friend, error)
	ApplyForFriend(ctx context.Context, friend domain.Friend) error
	AdminGetFriends(ctx context.Context, pageDTO dto.PageDTO) ([]domain.Friend, int64, error)
	AdminUpdateFriend(ctx context.Context, friend domain.Friend) error
	AdminDeleteFriend(ctx context.Context, id string) error
	AdminApproveFriend(ctx context.Context, id string) (string, error)
	AdminRejectFriend(ctx context.Context, id string) (string, error)
}

Jump to

Keyboard shortcuts

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