mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 11:43:22 +02:00
17 lines
468 B
Go
17 lines
468 B
Go
package gateways
|
|
|
|
import (
|
|
"RenewCMS/domain/article"
|
|
)
|
|
|
|
type IArticleRepository interface {
|
|
Get(id uint32) (article.Article, error)
|
|
GetByName(name string) (article.Article, error)
|
|
GetAll() []article.Article
|
|
Create(post article.Article) (article.Article, error)
|
|
UpdateBody(id uint32, body string) (article.Article, error)
|
|
UpdateIsOnline(id uint32, isOnline bool) (article.Article, error)
|
|
Delete(id uint32) error
|
|
AddImage(postId uint32, imageId uint32) error
|
|
}
|