feat(song): get media data

This commit is contained in:
Mathis Maquenne
2024-10-09 17:13:57 +02:00
parent 47ebaf143b
commit 258671004f
2 changed files with 69 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
package models
type Media []struct {
Type string `json:"media_type"`
Cipher Cipher `json:"cipher"`
Format string `json:"format"`
Sources []Source `json:"sources"`
}
type Cipher struct {
Type string `json:"type"`
}
type Source struct {
URL string `json:"url"`
Provider string `json:"provider"`
}
type MediaResponse struct {
Errors []MediaError `json:"errors"`
Data []struct {
Media Media `json:"media"`
}
}
type MediaError struct {
Code int `json:"code"`
Message string `json:"message"`
}