2022-06-15 12:41:17 +00:00
|
|
|
package model
|
|
|
|
|
|
|
|
import (
|
|
|
|
"io"
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Obj interface {
|
2022-06-23 07:57:36 +00:00
|
|
|
GetSize() int64
|
2022-06-15 12:41:17 +00:00
|
|
|
GetName() string
|
|
|
|
ModTime() time.Time
|
|
|
|
IsDir() bool
|
|
|
|
GetID() string
|
|
|
|
}
|
|
|
|
|
|
|
|
type FileStreamer interface {
|
|
|
|
io.ReadCloser
|
|
|
|
Obj
|
|
|
|
GetMimetype() string
|
|
|
|
}
|
|
|
|
|
|
|
|
type URL interface {
|
|
|
|
URL() string
|
|
|
|
}
|
|
|
|
|
|
|
|
type Thumbnail interface {
|
|
|
|
Thumbnail() string
|
|
|
|
}
|
2022-06-16 12:25:33 +00:00
|
|
|
|
|
|
|
type SetID interface {
|
|
|
|
SetID(id string)
|
|
|
|
}
|