Renamed Id to ID, following GoLang convention

This commit is contained in:
Deluan
2020-01-09 23:33:01 -05:00
committed by Deluan Quintão
parent 018352463f
commit 40904b220e
35 changed files with 122 additions and 122 deletions
+2 -2
View File
@@ -3,9 +3,9 @@ package domain
import "time"
type Album struct {
Id string
ID string
Name string
ArtistId string `parent:"artist"`
ArtistID string `parent:"artist"`
CoverArtPath string
CoverArtId string
Artist string
+1 -1
View File
@@ -1,7 +1,7 @@
package domain
type Artist struct {
Id string
ID string
Name string
AlbumCount int
}
+1 -1
View File
@@ -3,7 +3,7 @@ package domain
import "github.com/cloudsonic/sonic-server/utils"
type ArtistInfo struct {
ArtistId string
ArtistID string
Artist string
AlbumCount int
}
+3 -3
View File
@@ -6,14 +6,14 @@ import (
)
type MediaFile struct {
Id string
ID string
Path string
Title string
Album string
Artist string
ArtistId string
ArtistID string
AlbumArtist string
AlbumId string `parent:"album"`
AlbumID string `parent:"album"`
HasCoverArt bool
TrackNumber int
DiscNumber int
+1 -1
View File
@@ -1,7 +1,7 @@
package domain
type MediaFolder struct {
Id string
ID string
Name string
Path string
}
+1 -1
View File
@@ -5,7 +5,7 @@ import "time"
const NowPlayingExpire = 60 * time.Minute
type NowPlayingInfo struct {
TrackId string
TrackID string
Start time.Time
Username string
PlayerId int
+1 -1
View File
@@ -1,7 +1,7 @@
package domain
type Playlist struct {
Id string
ID string
Name string
Comment string
FullPath string
+1 -1
View File
@@ -5,7 +5,7 @@ const (
)
type Property struct {
Id string
ID string
Value string
}