change error format

This commit is contained in:
kandrusyak
2023-10-13 00:28:35 +03:00
parent 703e4f2ac1
commit dc7e3d195e
2 changed files with 93 additions and 15 deletions

14
pkg/utils/validation.go Normal file
View 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
}