comment

package
v0.0.0-...-38b1c69 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotAvailableAction = errors.New("action not available for user")

Functions

func New

func New(repo commentRepo.Repository, checker availablePinChecker, notifyCase notification.Usecase) *commentCase

Types

type Usecase

type Usecase interface {
	PutCommentOnPin(ctx context.Context, userID int, comment *entity.Comment) (int, error)
	GetFeedCommentOnPin(ctx context.Context, userID, pinID, count, lastID int) ([]entity.Comment, int, error)
	DeleteComment(ctx context.Context, userID, commentID int) error
	GetCommentWithAuthor(ctx context.Context, commentID int) (*entity.Comment, error)
}

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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