You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
772 B
35 lines
772 B
package com.wb.excel.api.interfaces;
|
|
|
|
import com.wb.excel.api.entity.DataVerifyResult;
|
|
|
|
/**
|
|
* 导入校验接口
|
|
*/
|
|
public interface IExcelVerifyHandler {
|
|
|
|
// /**
|
|
// * 获取需要处理的字段,导入和导出统一处理了, 减少书写的字段
|
|
// *
|
|
// * @return
|
|
// */
|
|
// public String[] getNeedVerifyFields();
|
|
//
|
|
// /**
|
|
// * 获取需要处理的字段,导入和导出统一处理了, 减少书写的字段
|
|
// *
|
|
// * @return
|
|
// */
|
|
// public void setNeedVerifyFields(String[] arr);
|
|
|
|
/**
|
|
* 数据校验
|
|
*
|
|
* @param obj 当前对象
|
|
* @param name 当前字段名称
|
|
* @param value 当前值
|
|
* @return
|
|
*/
|
|
DataVerifyResult verifyHandler(Object obj, String name, Object value);
|
|
|
|
}
|