Refactoring update handlers.

Fixes #16.
This commit is contained in:
Matthew Dillon 2015-10-13 12:38:18 -07:00
parent 7c253d7aa5
commit b87077a1df
12 changed files with 79 additions and 35 deletions

View file

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