Files
MusicServer/pkg/models/models.go
Sebastian f9d6c24a97 Changed routing framework from mux to Gin.
Swagger doc is now included in the application.
A fronted can now be hosted from the application.
2022-01-29 17:52:33 +01:00

44 lines
892 B
Go

package models
import (
"time"
)
type Played struct {
Song int
}
type VersionData struct {
Version string `json:"version" example:"1.0.0swagger.yaml"`
Changelog string `json:"changelog" example:"account name"`
History []VersionData `json:"history"`
}
type SongInfo struct {
Game string `json:"Game"`
GamePlayed int `json:"GamePlayed"`
Song string `json:"Song"`
SongPlayed int `json:"SongPlayed"`
CurrentlyPlaying bool `json:"CurrentlyPlaying"`
SongNo int `json:"SongNo"`
}
type GameData struct {
Id int
GameName string
Added time.Time
Deleted time.Time
LastChanged time.Time
Path string
TimesPlayed int
LastPlayed time.Time
NumberOfSongs int32
}
type SongData struct {
GameId int
SongName string
Path string
TimesPlayed int
}