Payload stutter

This commit is contained in:
Matthew Dillon 2015-10-01 14:25:08 -07:00
parent da523e0160
commit 419ef7b5cf
11 changed files with 43 additions and 43 deletions

View file

@ -6,22 +6,22 @@ import (
"github.com/thermokarst/bactdb/models"
)
type SpeciesPayload struct {
type Species struct {
Species *models.Species `json:"species"`
Strains *models.Strains `json:"strains"`
Meta *models.SpeciesMeta `json:"meta"`
}
type ManySpeciesPayload struct {
type ManySpecies struct {
Species *models.ManySpecies `json:"species"`
Strains *models.Strains `json:"strains"`
Meta *models.SpeciesMeta `json:"meta"`
}
func (s *SpeciesPayload) Marshal() ([]byte, error) {
func (s *Species) Marshal() ([]byte, error) {
return json.Marshal(s)
}
func (s *ManySpeciesPayload) Marshal() ([]byte, error) {
func (s *ManySpecies) Marshal() ([]byte, error) {
return json.Marshal(s)
}