import
This commit is contained in:
@@ -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"})
|
||||
}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user