mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 19:53:21 +02:00
22 lines
364 B
Go
22 lines
364 B
Go
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"`
|
|
ArticleID uint32 `json:"article_id"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|