feat: images
This commit is contained in:
1 parent
eb98a1003e
commit
c25fb1b0a3
19 files changed
+387
-100
No files matched your search
@@ -0,0 +1,11 @@
|
||||
package gateways
|
||||
|
||||
import (
|
||||
"GoCMS/domain/image"
|
||||
"mime/multipart"
|
||||
)
|
||||
|
||||
type IImageRepository interface {
|
||||
Create(file multipart.File, fileHeader multipart.FileHeader) (image.Image, error)
|
||||
Delete(id uint32) error
|
||||
}
|
||||
@@ -9,6 +9,7 @@ type IPostRepository interface {
|
||||
GetByName(name string) (post.Post, error)
|
||||
GetAll() []post.Post
|
||||
Create(post post.Post) (post.Post, error)
|
||||
UpdateBody(id uint32, body string) error
|
||||
UpdateBody(id uint32, body string) (post.Post, error)
|
||||
Delete(id uint32) error
|
||||
AddImage(postId uint32, imageId uint32) error
|
||||
}
|
||||
Reference in new issue
Block a user