service

package
v0.0.0-...-a783adc Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: Apache-2.0 Imports: 4 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) 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
}

Jump to

Keyboard shortcuts

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