![JAR search and dependency download from the Maven repository](/logo.png)
com.swak.excel.service.ExcelHandlerService Maven / Gradle / Ivy
package com.swak.excel.service;
import com.swak.common.dto.Response;
import com.swak.common.validation.ValidationResult;
import com.swak.excel.metadata.BaseRow;
import com.swak.excel.metadata.ExcelWriteData;
import com.swak.excel.metadata.RowErrResult;
import java.util.List;
/**
* Excel import and export Handler Service
*
* @author colley.ma
* @since 2.4.0
**/
public interface ExcelHandlerService {
/**
* 导出
*
* @param query
*/
default ExcelWriteData getExportData(Q query) {
throw new UnsupportedOperationException("unsupported excel file export");
}
/**
* 导入
*
* @param commandInput
* @param sheetData
*/
default Response importRegister(C commandInput, List sheetData) {
throw new UnsupportedOperationException("unsupported excel upload import");
}
/**
* 校验
* @param rowDataList
*/
default ValidationResult validate(C commandInput, List rowDataList) {
return new ValidationResult(true);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy