package com.rongyichuang.review.dto.response;
|
|
import java.util.List;
|
|
/**
|
* 评审项目分页响应
|
*/
|
public class ReviewProjectPageResponse {
|
|
private List<ReviewProjectResponse> items;
|
private int total;
|
private int page;
|
private int size;
|
private int totalPages;
|
|
public ReviewProjectPageResponse() {}
|
|
public ReviewProjectPageResponse(List<ReviewProjectResponse> items, int total, int page, int size) {
|
this.items = items;
|
this.total = total;
|
this.page = page;
|
this.size = size;
|
this.totalPages = (int) Math.ceil((double) total / size);
|
}
|
|
public List<ReviewProjectResponse> getItems() {
|
return items;
|
}
|
|
public void setItems(List<ReviewProjectResponse> items) {
|
this.items = items;
|
}
|
|
public int getTotal() {
|
return total;
|
}
|
|
public void setTotal(int total) {
|
this.total = total;
|
}
|
|
public int getPage() {
|
return page;
|
}
|
|
public void setPage(int page) {
|
this.page = page;
|
}
|
|
public int getSize() {
|
return size;
|
}
|
|
public void setSize(int size) {
|
this.size = size;
|
}
|
|
public int getTotalPages() {
|
return totalPages;
|
}
|
|
public void setTotalPages(int totalPages) {
|
this.totalPages = totalPages;
|
}
|
|
public boolean getHasMore() {
|
return page < totalPages;
|
}
|
}
|