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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DAO

type DAO interface {
	WithTx(tx *postgres.DBQuery) DAO

	Get(taskID, size, page int) (lists []models.Comment, err error)

	GetByID(commentID int) (comment models.Comment, err error)

	Insert(comment models.Comment) (_ models.Comment, err error)

	Update(comment models.Comment) (_ models.Comment, err error)

	Delete(commentID int) (err error)
}

func NewCommentDao

func NewCommentDao() DAO

Jump to

Keyboard shortcuts

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