Package io.mybatis.common.core
Class RowsResponse<T>
- java.lang.Object
-
- io.mybatis.common.core.Response<RowsResponse>
-
- io.mybatis.common.core.RowsResponse<T>
-
- Type Parameters:
T- 值类型
public class RowsResponse<T> extends Response<RowsResponse>
返回多个值集合- Author:
- liuzh
-
-
Field Summary
-
Fields inherited from class io.mybatis.common.core.Response
code, message, RESPONSE_BUNDLE, success
-
-
Constructor Summary
Constructors Constructor Description RowsResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<T>getRows()LonggetTotal()static <T> RowsResponse<T>ok(List<T> rows)static <T> RowsResponse<T>ok(List<T> rows, Long total)static <T> RowsResponse<T>ok(List<T> rows, Long total, String message)static <T> RowsResponse<T>ok(List<T> rows, String message)RowsResponse<T>rows(List<T> rows)voidsetRows(List<T> rows)voidsetTotal(Long total)RowsResponse<T>total(Long total)
-
-
-
Method Detail
-
ok
public static <T> RowsResponse<T> ok(List<T> rows)
-
ok
public static <T> RowsResponse<T> ok(List<T> rows, Long total)
-
ok
public static <T> RowsResponse<T> ok(List<T> rows, String message)
-
ok
public static <T> RowsResponse<T> ok(List<T> rows, Long total, String message)
-
rows
public RowsResponse<T> rows(List<T> rows)
-
total
public RowsResponse<T> total(Long total)
-
getTotal
public Long getTotal()
-
setTotal
public void setTotal(Long total)
-
-