| | |
| | | File struct { |
| | | Name string `gorm:"name" json:"name"` |
| | | Size int64 `gorm:"size" json:"size"` // 文件大小 |
| | | FilePath string `gorm:"file_path" json:"filePath"` // 文件路径 |
| | | FilePath string `gorm:"file_path" json:"-"` // 文件路径 |
| | | Key string `gorm:"key" json:"key"` // 对象存储key |
| | | Bucket string `gorm:"bucket" json:"bucket"` // 对象存储bucket |
| | | Bucket string `gorm:"bucket" json:"-"` // 对象存储bucket |
| | | DownloadCount int `gorm:"download_count" json:"downloadCount"` // 下次次数 |
| | | PreviewCount int `gorm:"preview_count" json:"previewCount"` // 预览次数 |
| | | FileType string `gorm:"file_type" json:"fileType"` // 文件类型 |