- bropen.toolkit.api.BulkResponse
-
-
Properties Summary
Properties
| Type |
Name and description |
List<String> |
msgs 成功或失败的消息列表,和 stats 一一对应 |
List<Integer> |
stats 状态位列表,和 msgs 一一对应 |
-
Methods Summary
Methods
| Type |
Name and description |
Object |
asType(Class target)
|
static BulkResponse |
create(Integer status, String msg, List<Integer> stats, List<String> msgs = null, Object data = null, Object id = null) 创建一个响应对象 |
static BulkResponse |
createError(String msg, List<Integer> stats, List<String> msgs = null, Object data = null, Object id = null)
|
static BulkResponse |
createFailed(String msg, List<Integer> stats, List<String> msgs = null, Object data = null, Object id = null)
|
static BulkResponse |
createSuccess(String msg, List<Integer> stats, List<String> msgs = null, Object data = null, Object id = null)
|
-
Inherited Methods Summary
Inherited Methods
| Methods inherited from class |
Name |
class Response |
asBoolean, asType, create, createError, createFailed, createSuccess, isSuccess, toJson, toString |
class Object |
Object#wait(long, int), Object#wait(long), Object#wait(), Object#equals(Object), Object#toString(), Object#hashCode(), Object#getClass(), Object#notify(), Object#notifyAll() |
-
-
Property Detail
-
List<String> msgs
成功或失败的消息列表,和 stats 一一对应
-
List<Integer> stats
状态位列表,和 msgs 一一对应
-
Method Detail
-
@Override
Object asType(Class target)
-
static BulkResponse create(Integer status, String msg, List<Integer> stats, List<String> msgs = null, Object data = null, Object id = null)
创建一个响应对象
-
static BulkResponse createError(String msg, List<Integer> stats, List<String> msgs = null, Object data = null, Object id = null)
-
static BulkResponse createFailed(String msg, List<Integer> stats, List<String> msgs = null, Object data = null, Object id = null)
-
static BulkResponse createSuccess(String msg, List<Integer> stats, List<String> msgs = null, Object data = null, Object id = null)
BROPEN Documentation, 2020-04-21 10:53