mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 11:43:22 +02:00
15 lines
296 B
Go
15 lines
296 B
Go
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) error
|
|
Delete(id uint32) error
|
|
}
|