mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
refactoring API and added dbs: postgres, bolt
This commit is contained in:
11
api/models/error_body.go
Normal file
11
api/models/error_body.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user