Files
RenewCMS/internal/domain/image/imageDomain.go
T

25 lines
428 B
Go

package image
import (
"errors"
"io"
"time"
)
var ErrImageNotFound = errors.New("image not found")
type ImageInput struct {
Content io.Reader
Filename string
Size int64
ContentType string
}
type Image struct {
ID uint32 `json:"id"`
Path string `json:"path"`
ArticleID uint32 `json:"article_id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}