ports

package
v0.0.0-...-d27190a Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArticleRepository

type ArticleRepository interface {
	CreateArticle(article *domain.Article) (*domain.Article, error)
	GetArticleByID(article_id string) (*domain.Article, error)
	GetArticles() (*[]domain.Article, error)
	GetArticlesByAuthor(author_id string) (*[]domain.Article, error)
	GetArticlesByTag(tag string) (*[]domain.Article, error)
	UpdateArticle(article *domain.Article) (*domain.Article, error)
	DeleteArticle(article_id string) error
	DeleteArticleAll() error
}

type ArticleService

type ArticleService interface {
	CreateArticle(article *domain.Article) (*domain.Article, error)
	GetArticleByID(article_id string) (*domain.Article, error)
	GetArticles() (*[]domain.Article, error)
	GetArticlesByAuthor(author_id string) (*[]domain.Article, error)
	GetArticlesByTag(tag string) (*[]domain.Article, error)
	UpdateArticle(article *domain.Article) (*domain.Article, error)
	DeleteArticle(article_id string) error
	DeleteArticleAll() error
}

type ContentRepository

type ContentRepository interface {
	CreateContent(Content *domain.Content) (*domain.Content, error)
	ReadContent(id string) (*domain.ContentResponse, error)
	ReadContents() ([]domain.Content, error)
	UpdateContent(Content *domain.Content) (*domain.Content, error)
	DeleteContent(id string) (string, error)
	DeleteAllContent() (string, error)
}

type ContentService

type ContentService interface {
	CreateContent(Content *domain.Content) (*domain.Content, error)
	ReadContent(id string) (*domain.ContentResponse, error)
	ReadContents() ([]domain.Content, error)
	UpdateContent(Content *domain.Content) (*domain.Content, error)
	DeleteContent(id string) (string, error)
	ReadCreatorContents(creator_id string) ([]domain.Content, error)
	DeleteAllContent() (string, error)
}

Jump to

Keyboard shortcuts

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