package jnpf.personnels.listeners;

import com.alibaba.excel.context.AnalysisContext;

import java.util.List;

public interface BaseEasyExcelCommonListener<T, R> {

    default boolean before() {
        return true;
    }

    void dataValidation(AnalysisContext analysisContext, T data, List<T> nomarlData, List<R> errorData);

    void saveDataToRedis(List<T> nomarlData, List<R> errorData);

    default boolean after() {
        return true;
    }

}
