package org.sky.system.excel;

import lombok.RequiredArgsConstructor;
import org.sky.core.excel.support.ExcelImporter;
import org.sky.system.service.IUserService;

import java.util.List;

/**
 * 用户数据导入类
 *
 */
@RequiredArgsConstructor
public class UserImporter implements ExcelImporter<UserExcel> {

	private final IUserService service;
	private final Boolean isCovered;

	@Override
	public void save(List<UserExcel> data) {
		service.importUser(data, isCovered);
	}
}
