refact & update new model
This commit is contained in:
11
pkg/error/errdata.go
Normal file
11
pkg/error/errdata.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package error
|
||||
|
||||
import "github.com/gin-gonic/gin"
|
||||
|
||||
func ErrorData(message string) gin.H {
|
||||
return gin.H{
|
||||
"error": gin.H{
|
||||
"message": message,
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user