package com.bcxin.tenant.domain.repositories.composites;

import com.bcxin.tenant.domain.entities.DepartmentEntity;
import com.bcxin.tenant.domain.services.commands.BatchImportEmployeeCommand;
import lombok.Getter;

@Getter
public class EmployeeDepartWrapper {
    private final BatchImportEmployeeCommand.EmployeeCommandItem item;
    private final DepartmentEntity department;

    public EmployeeDepartWrapper(BatchImportEmployeeCommand.EmployeeCommandItem item, DepartmentEntity department) {
        this.item = item;
        this.department = department;
    }

    public static EmployeeDepartWrapper create(BatchImportEmployeeCommand.EmployeeCommandItem item, DepartmentEntity department) {
        return new EmployeeDepartWrapper(item, department);
    }
}
