package com.example.common; import lombok.Data; import java.util.List; @Data public class PageResult { private Long total; private Long pages; private Long current; private Long size; private List records; public PageResult(Long total, Long current, Long size, List records) { this.total = total; this.current = current; this.size = size; this.records = records; this.pages = (total + size - 1) / size; } }