package easydo.technology.base;

import lombok.Builder;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * Created by jinjin on 2020-09-22.
 */
@Data
@Builder
@Accessors(chain = true)
public class PageInfo<T> implements Serializable {
    private long totalElements;

    private List<T> content;

    public PageInfo(long totalElements, List<T> content) {
        this.totalElements = totalElements;
        this.content = content;
    }

    public PageInfo() {
    }
}
