mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-07 02:42:50 +08:00
36 lines
511 B
Go
36 lines
511 B
Go
package webinfo
|
|
|
|
import (
|
|
"AynaLivePlayer/core/model"
|
|
)
|
|
|
|
type MediaInfo struct {
|
|
Index int
|
|
Title string
|
|
Artist string
|
|
Album string
|
|
Username string
|
|
Cover model.Picture
|
|
}
|
|
|
|
type OutInfo struct {
|
|
Current MediaInfo
|
|
CurrentTime int
|
|
TotalTime int
|
|
Lyric string
|
|
Playlist []MediaInfo
|
|
}
|
|
|
|
const (
|
|
OutInfoC = "Current"
|
|
OutInfoCT = "CurrentTime"
|
|
OutInfoTT = "TotalTime"
|
|
OutInfoL = "Lyric"
|
|
OutInfoPL = "Playlists"
|
|
)
|
|
|
|
type WebsocketData struct {
|
|
Update string
|
|
Data OutInfo
|
|
}
|