This commit is contained in:
2026-08-21 23:24:38 +02:00
parent 2d43c227da
commit b6ef29ad2d
6 changed files with 1172 additions and 45 deletions
@@ -3,15 +3,16 @@ package controller
import (
"net/http"
"simplycpq/models"
"simplycpq/services"
"github.com/gin-gonic/gin"
)
type ImportController struct {
importService *ImportService
importService *services.ImportService
}
func NewImportController(i *ImportService) *ImportController {
func NewImportController(i *services.ImportService) *ImportController {
return &ImportController{
importService: i,
}
@@ -47,6 +48,7 @@ func (ic *ImportController) ImportProductGroups(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{"message": "Import ProductGroups endpoint"})
}
/*
func (ic *ImportController) ImportProducts(c *gin.Context) {
// Implement the logic for importing Products here
var importData []models.ImportProduct
@@ -61,3 +63,4 @@ func (ic *ImportController) ImportProducts(c *gin.Context) {
}
c.JSON(http.StatusOK, gin.H{"message": "Import Products endpoint"})
}
*/