minor comments
This commit is contained in:
parent
86244f6665
commit
efff71f46e
@ -5,10 +5,12 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// ArtistService ...
|
||||||
type ArtistService struct {
|
type ArtistService struct {
|
||||||
api *apirequest.API
|
api *apirequest.API
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ArtistParams ...
|
||||||
type ArtistParams struct {
|
type ArtistParams struct {
|
||||||
Artist_id string
|
Artist_id string
|
||||||
Sort string // year, title, format
|
Sort string // year, title, format
|
||||||
@ -17,6 +19,7 @@ type ArtistParams struct {
|
|||||||
Per_page int
|
Per_page int
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Artist ...
|
||||||
type Artist struct {
|
type Artist struct {
|
||||||
Namevariations []string `json:"namevariations"`
|
Namevariations []string `json:"namevariations"`
|
||||||
Profile string `json:"profile"`
|
Profile string `json:"profile"`
|
||||||
@ -30,6 +33,7 @@ type Artist struct {
|
|||||||
Members []Member `json:"members"`
|
Members []Member `json:"members"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Artistreleases ...
|
||||||
type ArtistReleases struct {
|
type ArtistReleases struct {
|
||||||
Paginastion Page `json:"pagination"`
|
Paginastion Page `json:"pagination"`
|
||||||
Releases []ReleaseSource `json:"releases"`
|
Releases []ReleaseSource `json:"releases"`
|
||||||
@ -41,6 +45,7 @@ func newArtistService(api *apirequest.API) *ArtistService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Artist ...
|
||||||
func (self *ArtistService) Artist(params *ArtistParams) (*Artist, *http.Response, error) {
|
func (self *ArtistService) Artist(params *ArtistParams) (*Artist, *http.Response, error) {
|
||||||
artist := new(Artist)
|
artist := new(Artist)
|
||||||
apiError := new(APIError)
|
apiError := new(APIError)
|
||||||
@ -49,6 +54,7 @@ func (self *ArtistService) Artist(params *ArtistParams) (*Artist, *http.Response
|
|||||||
return artist, resp, relevantError(err, *apiError)
|
return artist, resp, relevantError(err, *apiError)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Releases ...
|
||||||
func (self *ArtistService) Releases(params *ArtistParams) (*ArtistReleases, *http.Response, error) {
|
func (self *ArtistService) Releases(params *ArtistParams) (*ArtistReleases, *http.Response, error) {
|
||||||
releases := new(ArtistReleases)
|
releases := new(ArtistReleases)
|
||||||
apiError := new(APIError)
|
apiError := new(APIError)
|
||||||
|
Reference in New Issue
Block a user