interactor

package
v0.0.0-...-a6c5799 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewArticle

func NewArticle(outputPort port.ArticleOutput, repository repository.Article) port.ArticleInput

Types

type Article

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

func (*Article) Create

func (a *Article) Create(ctx context.Context, newArticle *entities.Article)

func (*Article) Delete

func (a *Article) Delete(ctx context.Context, articleID int64)

func (*Article) FindAll

func (a *Article) FindAll(ctx context.Context)

func (*Article) FindByID

func (a *Article) FindByID(ctx context.Context, articleID int64)

func (*Article) Update

func (a *Article) Update(ctx context.Context, articleID int64, title, body *string)

type ErrResponse

type ErrResponse struct {
	Message string   `json:"message"`
	Details []string `json:"details,omitempty"`
}

Jump to

Keyboard shortcuts

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