followservice

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func New

func New(follow repoiface.FollowRepository) *Service

func (*Service) AddFollow

func (s *Service) AddFollow(ctx context.Context, userId, targetUserId int64) error

func (*Service) ListFollowing

func (s *Service) ListFollowing(ctx context.Context, userId int64, followType v1.FollowType, pagination *v1.PaginationRequest) ([]int64, error)

func (*Service) RemoveFollow

func (s *Service) RemoveFollow(ctx context.Context, userId, targetUserId int64) error

Jump to

Keyboard shortcuts

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