comments

package
v0.0.0-...-d482384 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2021 License: MIT Imports: 7 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 interface {
	WithTx(tx *postgres.DBQuery) Service

	Get(taskID, size, page int) (comments []models.Comment, extErr exterrors.ExtError)

	GetByID(commentID int) (comment models.Comment, extErr exterrors.ExtError)

	Create(taskID int64, text string) (comment models.Comment, extErr exterrors.ExtError)

	Update(commentID int, text string) (comment models.Comment, extErr exterrors.ExtError)

	Delete(commentID int) (extErr exterrors.ExtError)
}

func New

func New() (_ Service, err error)

Jump to

Keyboard shortcuts

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