Skip to content
Snippets Groups Projects
Commit f2a57b75 authored by andmag's avatar andmag
Browse files

species structs, trying to merge speciesKey and species

parent 5795887b
Branches
No related tags found
No related merge requests found
...@@ -5,17 +5,32 @@ type Country struct { ...@@ -5,17 +5,32 @@ type Country struct {
Code string `json:"alpha2Code"` Code string `json:"alpha2Code"`
Countryname string `json:"name"` Countryname string `json:"name"`
Countryflag string `json:"flag"` Countryflag string `json:"flag"`
//Categorycodes string `json:"category"` // Species []Spec
//Speciescategorycount string `json:"` // SpeciesKey []SpecKey
} }
/* // Name jdhgkjdng
type SpeciesByCountry struct { type Name struct {
Species string `json:"species"` Species string `json:"species"`
SpeciesKey int `json:"speciesKey"` SpeciesKey int `json:"speciesKey"`
} }
/*
type Key struct {
//SpeciesKey int `json:"speciesKey`
}
*/ */
type Results2 struct {
Res2 []string `json:"species"`
Res3 []int `json:"speciesKey"`
}
type Results struct {
Res1 []Name `json:"results"`
//Res2 []Key
}
// Species comment endpoint // Species comment endpoint
type Species struct { type Species struct {
Key int `json:"key"` Key int `json:"key"`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment