| | |
| | | package com.zy.asrs.wms.common.domain; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author vincent |
| | | * @since 2017-06-10 10:10:02 |
| | | */ |
| | | @Data |
| | | public class PageResult<T> implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | private List<T> records; |
| | | |
| | | private Long total; |
| | | |
| | | public PageResult() { |
| | | } |
| | | |
| | | public PageResult(List<T> records) { |
| | | this(records, null); |
| | | } |
| | | |
| | | public PageResult(List<T> records, Long total) { |
| | | this.records = records; |
| | | this.total = total; |
| | | } |
| | | |
| | | } |
| | | package com.zy.asrs.wms.common.domain;
|
| | |
|
| | | import lombok.Data;
|
| | |
|
| | | import java.io.Serializable;
|
| | | import java.util.List;
|
| | |
|
| | | /**
|
| | | * @author vincent
|
| | | * @since 2017-06-10 10:10:02
|
| | | */
|
| | | @Data
|
| | | public class PageResult<T> implements Serializable {
|
| | |
|
| | | private static final long serialVersionUID = 1L;
|
| | |
|
| | | private List<T> records;
|
| | |
|
| | | private Long total;
|
| | |
|
| | | public PageResult() {
|
| | | }
|
| | |
|
| | | public PageResult(List<T> records) {
|
| | | this(records, null);
|
| | | }
|
| | |
|
| | | public PageResult(List<T> records, Long total) {
|
| | | this.records = records;
|
| | | this.total = total;
|
| | | }
|
| | |
|
| | | }
|