refac: renamed 'post' -> 'article'

This commit is contained in:
Florian Sylvain
2025-11-17 19:27:48 +01:00
parent cb9a431488
commit b470bfcc67
44 changed files with 701 additions and 967 deletions
+16
View File
@@ -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
}