新增: SFTP直连+网站预览+OSS区域嗅探+热键+BGM播放
This commit is contained in:
17
internal/storage/models/download_cache.go
Normal file
17
internal/storage/models/download_cache.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package models
|
||||
|
||||
import "time"
|
||||
|
||||
// DownloadCache 下载缓存模型(SQLite 持久化)
|
||||
type DownloadCache struct {
|
||||
ID uint `gorm:"primaryKey"`
|
||||
Transport string `gorm:"not null;size:10;index:idx_cache_lookup"`
|
||||
ConnID string `gorm:"not null;index:idx_cache_lookup"`
|
||||
RemotePath string `gorm:"not null;index:idx_cache_lookup"`
|
||||
FileSize int64 `gorm:"not null;index:idx_cache_lookup"`
|
||||
ModTime string `gorm:"not null;index:idx_cache_lookup"`
|
||||
LocalPath string `gorm:"not null"`
|
||||
DownloadedAt time.Time `gorm:"not null"`
|
||||
}
|
||||
|
||||
func (DownloadCache) TableName() string { return "download_cache" }
|
||||
Reference in New Issue
Block a user