Refactor delete handlers

Fixes #18.
This commit is contained in:
Matthew Dillon 2015-10-13 13:42:19 -07:00
parent 62734899e2
commit d46e721063
15 changed files with 71 additions and 14 deletions

View file

@ -33,6 +33,10 @@ func (s *SpeciesBase) UpdateError() error {
return errors.ErrSpeciesNotUpdated
}
func (s *SpeciesBase) DeleteError() error {
return errors.ErrSpeciesNotDeleted
}
// SpeciesBase is what the DB expects for write operations.
type SpeciesBase struct {
ID int64 `db:"id" json:"id"`