Make contact information a map.

pull/2/head
Robert Jacob 2019-03-10 19:48:53 +01:00
parent 11e0a75be2
commit e0860c728b
1 changed files with 10 additions and 18 deletions

View File

@ -1,16 +1,16 @@
package spaceapi // import "git.hacknology.de/projekte/spaceapi"
type SpaceStatus struct {
APIVersion string `json:"api,omitempty"`
Space string `json:"space,omitempty"`
LogoURL string `json:"logo,omitempty"`
URL string `json:"url,omitempty"`
Location Location `json:"location"`
Contact Contact `json:"contact"`
IssueReportChannels []string `json:"issue_report_channels,omitempty"`
State State `json:"state"`
Feeds map[string]Feed `json:"feeds,omitempty"`
ProjectURLs []string `json:"projects,omitempty"`
APIVersion string `json:"api,omitempty"`
Space string `json:"space,omitempty"`
LogoURL string `json:"logo,omitempty"`
URL string `json:"url,omitempty"`
Location Location `json:"location"`
Contact map[string]string `json:"contact"`
IssueReportChannels []string `json:"issue_report_channels,omitempty"`
State State `json:"state"`
Feeds map[string]Feed `json:"feeds,omitempty"`
ProjectURLs []string `json:"projects,omitempty"`
}
type Location struct {
@ -19,14 +19,6 @@ type Location struct {
Latitude float64 `json:"lat,omitempty"`
}
type Contact struct {
Jabber string `json:"jabber,omitempty"`
IRC string `json:"irc,omitempty"`
Email string `json:"email,omitempty"`
MailingList string `json:"ml,omitempty"`
IssueMail string `json:"issue_mail,omitempty"`
}
type State struct {
Open *bool `json:"open"`
}