minor comments

This commit is contained in:
irlndts 2017-05-09 17:07:11 +03:00
parent 86244f6665
commit efff71f46e
1 changed files with 6 additions and 0 deletions

View File

@ -5,10 +5,12 @@ import (
"net/http"
)
// ArtistService ...
type ArtistService struct {
api *apirequest.API
}
// ArtistParams ...
type ArtistParams struct {
Artist_id string
Sort string // year, title, format
@ -17,6 +19,7 @@ type ArtistParams struct {
Per_page int
}
// Artist ...
type Artist struct {
Namevariations []string `json:"namevariations"`
Profile string `json:"profile"`
@ -30,6 +33,7 @@ type Artist struct {
Members []Member `json:"members"`
}
// Artistreleases ...
type ArtistReleases struct {
Paginastion Page `json:"pagination"`
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) {
artist := new(Artist)
apiError := new(APIError)
@ -49,6 +54,7 @@ func (self *ArtistService) Artist(params *ArtistParams) (*Artist, *http.Response
return artist, resp, relevantError(err, *apiError)
}
// Releases ...
func (self *ArtistService) Releases(params *ArtistParams) (*ArtistReleases, *http.Response, error) {
releases := new(ArtistReleases)
apiError := new(APIError)