mirror of
				https://github.com/TeaOSLab/EdgeAPI.git
				synced 2025-11-04 07:50:25 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			35 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
package models
 | 
						|
 | 
						|
// 文件管理
 | 
						|
type File struct {
 | 
						|
	Id          uint32 `field:"id"`          // ID
 | 
						|
	AdminId     uint32 `field:"adminId"`     // 管理员ID
 | 
						|
	UserId      uint32 `field:"userId"`      // 用户ID
 | 
						|
	Description string `field:"description"` // 文件描述
 | 
						|
	Filename    string `field:"filename"`    // 文件名
 | 
						|
	Size        uint32 `field:"size"`        // 文件尺寸
 | 
						|
	CreatedAt   uint64 `field:"createdAt"`   // 创建时间
 | 
						|
	Order       uint32 `field:"order"`       // 排序
 | 
						|
	Type        string `field:"type"`        // 类型
 | 
						|
	State       uint8  `field:"state"`       // 状态
 | 
						|
	IsFinished  uint8  `field:"isFinished"`  // 是否已完成上传
 | 
						|
}
 | 
						|
 | 
						|
type FileOperator struct {
 | 
						|
	Id          interface{} // ID
 | 
						|
	AdminId     interface{} // 管理员ID
 | 
						|
	UserId      interface{} // 用户ID
 | 
						|
	Description interface{} // 文件描述
 | 
						|
	Filename    interface{} // 文件名
 | 
						|
	Size        interface{} // 文件尺寸
 | 
						|
	CreatedAt   interface{} // 创建时间
 | 
						|
	Order       interface{} // 排序
 | 
						|
	Type        interface{} // 类型
 | 
						|
	State       interface{} // 状态
 | 
						|
	IsFinished  interface{} // 是否已完成上传
 | 
						|
}
 | 
						|
 | 
						|
func NewFileOperator() *FileOperator {
 | 
						|
	return &FileOperator{}
 | 
						|
}
 |