This commit is contained in:
Tomáš Dvořák
2025-10-03 16:26:44 +02:00
parent 0fc92f8464
commit cdb8bcd3e9
5928 changed files with 1054476 additions and 72 deletions
+3
View File
@@ -30,6 +30,7 @@ type Club struct {
City string `json:"city,omitempty"`
Type string `json:"type,omitempty"`
Website string `json:"website,omitempty"`
LogoURL string `json:"logo_url,omitempty"`
}
// FACRSearchResponse represents the search response from FAČR API
@@ -98,6 +99,7 @@ func (c *FACRClient) SearchClubs(query string) ([]Club, error) {
City: city,
Type: result.ClubType,
Website: "", // Not provided in search results
LogoURL: result.LogoURL,
})
}
@@ -159,6 +161,7 @@ func (c *FACRClient) GetClub(id string) (*Club, error) {
City: city,
Type: clubResp.ClubType,
Website: "", // Not provided in FACR API
LogoURL: clubResp.LogoURL,
}
return club, nil