Refactoring model & api tests.
This commit is contained in:
parent
cb383d84e7
commit
c088386a00
9 changed files with 88 additions and 48 deletions
|
@ -19,6 +19,10 @@ type Species struct {
|
|||
DeletedAt time.Time `db:"deleted_at" json:"deleted_at"`
|
||||
}
|
||||
|
||||
func NewSpecies() *Species {
|
||||
return &Species{SpeciesName: "Test Species"}
|
||||
}
|
||||
|
||||
// SpeciesService interacts with the species-related endpoints in bactdb's API.
|
||||
type SpeciesService interface {
|
||||
// Get a species
|
||||
|
|
Reference in a new issue