Files
faketunes/internal/domains/cacher/models/cache_item.go

22 lines
335 B
Go
Raw Normal View History

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,
}
}