mirror of
https://github.com/HChaZZY/alist.git
synced 2025-12-24 11:07:02 +08:00
chore: move some types to model
This commit is contained in:
15
internal/model/stream.go
Normal file
15
internal/model/stream.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"io"
|
||||
)
|
||||
|
||||
type FileStream struct {
|
||||
FileInfo
|
||||
io.ReadCloser
|
||||
Mimetype string
|
||||
}
|
||||
|
||||
func (f FileStream) GetMimetype() string {
|
||||
return f.Mimetype
|
||||
}
|
||||
Reference in New Issue
Block a user