Initial commit
Proof-of-concept implementation. Bugs will occur.
This commit is contained in:
21
internal/domains/cacher/models/cache_item.go
Normal file
21
internal/domains/cacher/models/cache_item.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"source.hodakov.me/hdkv/faketunes/internal/domains/cacher/dto"
|
||||
)
|
||||
|
||||
type CacheItem struct {
|
||||
Path string
|
||||
Size int64
|
||||
Updated time.Time
|
||||
}
|
||||
|
||||
func CacheItemModelToDTO(item *CacheItem) *dto.CacheItem {
|
||||
return &dto.CacheItem{
|
||||
Path: item.Path,
|
||||
Size: item.Size,
|
||||
Updated: item.Updated,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user