start implementing dataimport
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package services
|
||||
|
||||
import (
|
||||
"xcpq_editor/internal/models"
|
||||
"xcpq_editor/internal/repositories"
|
||||
)
|
||||
|
||||
type Import_Service struct {
|
||||
importRepository *repositories.Import_Repository
|
||||
}
|
||||
|
||||
func NewImport_Service(importRepository *repositories.Import_Repository) *Import_Service {
|
||||
return &Import_Service{
|
||||
importRepository: importRepository,
|
||||
}
|
||||
}
|
||||
|
||||
func (s *Import_Service) ImportPropertyTypesData(newGroup *models.Property_Types_Group, parentGroup *models.Property_Types_Group) error {
|
||||
return s.importRepository.ImportPropertyTypesData(newGroup, parentGroup)
|
||||
}
|
||||
Reference in New Issue
Block a user