mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-08-28 10:09:54 +08:00
模块化上传驱动,使用泛型优化工具库降低冗余
This commit is contained in:
12
server/internal/library/storager/model.go
Normal file
12
server/internal/library/storager/model.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package storager
|
||||
|
||||
// FileMeta 文件元数据
|
||||
type FileMeta struct {
|
||||
Filename string // 文件名称
|
||||
Size int64 // 文件大小
|
||||
Kind string // 文件所属分类
|
||||
MetaType string // 文件类型
|
||||
NaiveType string // NaiveUI类型
|
||||
Ext string // 文件后缀名
|
||||
Md5 string // 文件hash
|
||||
}
|
Reference in New Issue
Block a user