refactoring API and added dbs: postgres, bolt

This commit is contained in:
Pedro Nasser
2016-07-21 16:04:58 -03:00
parent edc126eb81
commit 66fa3d4035
19 changed files with 791 additions and 688 deletions

11
api/models/error_body.go Normal file
View File

@@ -0,0 +1,11 @@
package models
type ErrorBody struct {
Fields string `json:"fields,omitempty"`
Message string `json:"message,omitempty"`
}
// Validate validates this error body
func (m *ErrorBody) Validate() error {
return nil
}