naise_pos/api/error.go

11 lines
162 B
Go
Raw Normal View History

2023-03-07 18:52:37 +07:00
package api
import "github.com/gin-gonic/gin"
2023-03-22 12:05:43 +07:00
func errorResponse(err error, msg string) gin.H {
return gin.H{
"error": err.Error(),
"message": msg,
}
2023-03-07 18:52:37 +07:00
}