package repositories import ( "database/sql" "simplycpq/models" ) type ImportRepository struct { db *sql.DB productGroupRepo *ProductGroupRepository productRepo *ProductRepository valueRepo *ValueRepository } func NewImportRepository(db *sql.DB, productGroupRepo *ProductGroupRepository, productRepo *ProductRepository, valueRepo *ValueRepository) *ImportRepository { return &ImportRepository{ db: db, productGroupRepo: productGroupRepo, productRepo: productRepo, valueRepo: valueRepo, } } func (r *ImportRepository) ImportPropertyTypeGroups(importData []models.ImportPropertyTypeGroup) error { // Implement the logic to import PropertyTypeGroups into the database // This is a placeholder implementation; you need to write the actual logic return nil } func (r *ImportRepository) ImportProductGroups(importData []models.ImportProductGroup) error { // Implement the logic to import ProductGroups into the database // This is a placeholder implementation; you need to write the actual logic return nil } func (r *ImportRepository) ImportProducts(importData []models.ImportProduct) error { // Implement the logic to import Products into the database // This is a placeholder implementation; you need to write the actual logic return nil }