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) }
Click to show internal directories.
Click to hide internal directories.