Add void print

This commit is contained in:
aditya.siregar
2025-06-24 02:47:44 +07:00
parent 53014d90ab
commit 1201b2e45b
18 changed files with 2033 additions and 12 deletions
@@ -6,6 +6,7 @@ import (
"enaklo-pos-be/internal/handlers/request"
"enaklo-pos-be/internal/handlers/response"
"enaklo-pos-be/internal/services"
"fmt"
"github.com/gin-gonic/gin"
"github.com/go-playground/validator/v10"
"net/http"
@@ -50,6 +51,7 @@ func (h *Handler) Create(c *gin.Context) {
var req request.Product
if err := c.ShouldBindJSON(&req); err != nil {
fmt.Println(err)
response.ErrorWrapper(c, errors.ErrorBadRequest)
return
}