Package org.shoulder.log.operation.model
Interface OperateResult
- All Known Subinterfaces:
OperateRecord
- All Known Implementing Classes:
OperateRecordDto
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
可以判断操作结果的对象
如批量操作场景下返回的多个DTO,DTO中某个字段表示本次操作是否成功,实现该接口后
可以使用
OperationResult.of(boolean) 就可以判断本次批量操作是 成功 or 失败 or 部分成功- Author:
- lym
-
Method Summary
-
Method Details
-
success
boolean success()此次操作结果是否成功 (接口粒度为单次操作,单次操作只有成功或失败)- Returns:
- true 成功, false 失败
-