mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-23 15:00:25 +08:00
阶段性提交
This commit is contained in:
28
internal/db/models/file_model.go
Normal file
28
internal/db/models/file_model.go
Normal file
@@ -0,0 +1,28 @@
|
||||
package models
|
||||
|
||||
//
|
||||
type File struct {
|
||||
Id uint32 `field:"id"` // ID
|
||||
Description string `field:"description"` // 文件描述
|
||||
Filename string `field:"filename"` // 文件名
|
||||
Size uint32 `field:"size"` // 文件尺寸
|
||||
CreatedAt uint32 `field:"createdAt"` // 创建时间
|
||||
Order uint32 `field:"order"` // 排序
|
||||
Type string `field:"type"` // 类型
|
||||
State uint8 `field:"state"` // 状态
|
||||
}
|
||||
|
||||
type FileOperator struct {
|
||||
Id interface{} // ID
|
||||
Description interface{} // 文件描述
|
||||
Filename interface{} // 文件名
|
||||
Size interface{} // 文件尺寸
|
||||
CreatedAt interface{} // 创建时间
|
||||
Order interface{} // 排序
|
||||
Type interface{} // 类型
|
||||
State interface{} // 状态
|
||||
}
|
||||
|
||||
func NewFileOperator() *FileOperator {
|
||||
return &FileOperator{}
|
||||
}
|
||||
Reference in New Issue
Block a user