mirror of
https://github.com/JuLi0n21/pwa-player.git
synced 2026-04-19 23:40:05 +00:00
the start of the go backend
This commit is contained in:
35
go-backend/models.go
Normal file
35
go-backend/models.go
Normal file
@@ -0,0 +1,35 @@
|
||||
package main
|
||||
|
||||
import "time"
|
||||
|
||||
type Song struct {
|
||||
MD5Hash string
|
||||
Title string
|
||||
Artist string
|
||||
Creator string
|
||||
Folder string
|
||||
File string
|
||||
Audio string
|
||||
Mapper string
|
||||
TotalTime time.Duration
|
||||
Url string
|
||||
Image string
|
||||
}
|
||||
|
||||
type CollectionPreview struct {
|
||||
name string
|
||||
image string
|
||||
index int
|
||||
items int
|
||||
}
|
||||
|
||||
type Collection struct {
|
||||
name string
|
||||
items int
|
||||
Songs []Song
|
||||
}
|
||||
|
||||
type ActiveSearch struct {
|
||||
artist string
|
||||
Songs []Song
|
||||
}
|
||||
Reference in New Issue
Block a user