package com.caliverse.admin.mongodb.dto;

import lombok.Data;

import java.util.List;

@Data
public class MongoPageResult<T> {
    private final List<T> items;
    private final int totalCount;

    public MongoPageResult(List<T> items, int totalCount) {
        this.items = items;
        this.totalCount = totalCount;
    }
}