package com.rongyichuang.player.dto.response;
|
|
import com.rongyichuang.common.dto.PageResponse;
|
import java.util.List;
|
|
/**
|
* 项目评审分页响应类型
|
*/
|
public class ProjectReviewApplicationPageResponse {
|
|
private List<ActivityPlayerApplicationResponse> content;
|
private Integer totalElements;
|
private Integer page;
|
private Integer size;
|
|
public ProjectReviewApplicationPageResponse() {}
|
|
public ProjectReviewApplicationPageResponse(List<ActivityPlayerApplicationResponse> content,
|
Long totalElements, Integer page, Integer size) {
|
this.content = content;
|
this.totalElements = totalElements != null ? totalElements.intValue() : 0;
|
this.page = page;
|
this.size = size;
|
}
|
|
// 从通用PageResponse转换
|
public static ProjectReviewApplicationPageResponse from(PageResponse<ActivityPlayerApplicationResponse> pageResponse) {
|
return new ProjectReviewApplicationPageResponse(
|
pageResponse.getContent(),
|
pageResponse.getTotalElements(),
|
pageResponse.getPage(),
|
pageResponse.getSize()
|
);
|
}
|
|
// Getters and Setters
|
public List<ActivityPlayerApplicationResponse> getContent() {
|
return content;
|
}
|
|
public void setContent(List<ActivityPlayerApplicationResponse> content) {
|
this.content = content;
|
}
|
|
public Integer getTotalElements() {
|
return totalElements;
|
}
|
|
public void setTotalElements(Integer totalElements) {
|
this.totalElements = totalElements;
|
}
|
|
public Integer getPage() {
|
return page;
|
}
|
|
public void setPage(Integer page) {
|
this.page = page;
|
}
|
|
public Integer getSize() {
|
return size;
|
}
|
|
public void setSize(Integer size) {
|
this.size = size;
|
}
|
}
|