-
Notifications
You must be signed in to change notification settings - Fork 1
/
responses.go
38 lines (33 loc) · 1010 Bytes
/
responses.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package lyricfind
type Artist struct {
Name string `json:"name"`
}
type Track struct {
Amg int `json:"amg"`
Instrumental bool `json:"instrumental"`
Viewable bool `json:"viewable"`
HasLrc bool `json:"has_lrc"`
Title string `json:"title"`
Artist *Artist `json:"artist"`
Snippet string `json:"snippet"`
LastUpdate string `json:"last_update"`
Score float64 `json:"score"`
Lyrics string `json:"lyrics"`
Copyright string `json:"copyright"`
Writer string `json:"writer"`
}
type Response struct {
Code int `json:"code"`
Description string `json:"description"`
Message string `json:"message"`
}
type SearchResponse struct {
Response *Response `json:"response"`
TotalResults int `json:"total_results"`
TotalPages int `json:"total_pages"`
Tracks []*Track `json:"tracks"`
}
type LyricsResponse struct {
Response *Response `json:"response"`
Track *Track `json:"track"`
}