mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 19:53:21 +02:00
refac: renamed 'post' -> 'article'
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package gateways
|
||||
|
||||
import (
|
||||
"GoCMS/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
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
package gateways
|
||||
|
||||
import (
|
||||
"GoCMS/domain/post"
|
||||
)
|
||||
|
||||
type IPostRepository interface {
|
||||
Get(id uint32) (post.Post, error)
|
||||
GetByName(name string) (post.Post, error)
|
||||
GetAll() []post.Post
|
||||
Create(post post.Post) (post.Post, error)
|
||||
UpdateBody(id uint32, body string) (post.Post, error)
|
||||
UpdateIsOnline(id uint32, isOnline bool) (post.Post, error)
|
||||
Delete(id uint32) error
|
||||
AddImage(postId uint32, imageId uint32) error
|
||||
}
|
||||
Reference in New Issue
Block a user