article

package
v0.0.0-...-6e489c3 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Article

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

func Init

func Init(driver *mongo.Database) (*Article, error)

func (*Article) CreateArticle

func (a *Article) CreateArticle(article models.Article) (models.Article, error)

func (*Article) DeleteArticleById

func (a *Article) DeleteArticleById(id string) error

func (*Article) GetAllArticles

func (a *Article) GetAllArticles() ([]models.Article, error)

func (*Article) GetArticleById

func (a *Article) GetArticleById(id string) (models.Article, error)

func (*Article) LockArticleById

func (a *Article) LockArticleById(id string) error

func (*Article) UpdateArticleById

func (a *Article) UpdateArticleById(id string) error

Jump to

Keyboard shortcuts

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