change error format
This commit is contained in:
14
pkg/utils/validation.go
Normal file
14
pkg/utils/validation.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package utils
|
||||
|
||||
type Error struct {
|
||||
Type string
|
||||
Message string
|
||||
Code string
|
||||
}
|
||||
|
||||
type ValidationError struct {
|
||||
Type string
|
||||
Message string
|
||||
Code string
|
||||
Fields map[string]string
|
||||
}
|
||||
Reference in New Issue
Block a user