article

package
v0.0.0-...-af7f33b Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	CreateArticle(a *model.Article) error
	GetArticleByID(id int) (*model.Article, error)
	GetAllArticle() ([]*model.Article, error)
}

Repository defines article repository contract

type Usecase

type Usecase interface {
	CreateArticle(a *model.Article) error
	GetArticleByID(id int) (*model.Article, error)
	GetAllArticle() ([]*model.Article, error)
}

Usecase defines article usecase contract

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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