T - 值类型public class RowsResponse<T> extends Response<RowsResponse>
code, message, RESPONSE_BUNDLE, success| Constructor and Description |
|---|
RowsResponse() |
| Modifier and Type | Method and Description |
|---|---|
List<T> |
getRows() |
Long |
getTotal() |
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) |
void |
setRows(List<T> rows) |
void |
setTotal(Long total) |
RowsResponse<T> |
total(Long total) |
public static <T> RowsResponse<T> ok(List<T> rows)
public static <T> RowsResponse<T> ok(List<T> rows, Long total)
public static <T> RowsResponse<T> ok(List<T> rows, String message)
public static <T> RowsResponse<T> ok(List<T> rows, Long total, String message)
public RowsResponse<T> rows(List<T> rows)
public RowsResponse<T> total(Long total)
public Long getTotal()
public void setTotal(Long total)
Copyright © 2023. All rights reserved.