--添加操作生命周期接口
This commit is contained in:
@ -23,13 +23,18 @@ public interface DataOperationListener<T> {
|
||||
|
||||
|
||||
/**
|
||||
* @Description: TODO(这里用一句话描述这个方法的作用)
|
||||
* @Description: 有异常时
|
||||
* @param e
|
||||
* @return void 返回类型
|
||||
*/
|
||||
void onError(DataOperationContent<T> content);
|
||||
default void onError(DataOperationContent<T> content) {}
|
||||
|
||||
|
||||
void onFinally(DataOperationContent<T> content);
|
||||
/**
|
||||
* @Description: 所有操作结束
|
||||
* @param content
|
||||
* @return void 返回类型
|
||||
*/
|
||||
default void onFinally(DataOperationContent<T> content) {}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user