mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 11:43:22 +02:00
fix: remove low file code from domain
This commit is contained in:
@@ -1,9 +1,17 @@
|
||||
package image
|
||||
|
||||
import (
|
||||
"io"
|
||||
"time"
|
||||
)
|
||||
|
||||
type ImageInput struct {
|
||||
Content io.Reader
|
||||
Filename string
|
||||
Size int64
|
||||
ContentType string
|
||||
}
|
||||
|
||||
type Image struct {
|
||||
ID uint32 `json:"id"`
|
||||
Path string `json:"path"`
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
package image
|
||||
|
||||
import (
|
||||
"mime/multipart"
|
||||
)
|
||||
|
||||
type Repository interface {
|
||||
Create(file multipart.File, fileHeader multipart.FileHeader) (Image, error)
|
||||
Create(input ImageInput) (Image, error)
|
||||
Delete(id uint32) error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user