Fork自 lakernote / EasyAdmin
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
package com.laker.admin.framework.model;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; /** * @author longli */ @ApiModel public class PageResponse<T> extends Response<T> { @ApiModelProperty(notes = "数量") private Long count; public PageResponse(String code, String msg, T data, Long count) { super(code, msg, data); this.count = count; } public static <T> PageResponse<T> ok(T data, Long count) { return new PageResponse<>("0", "", data, count); } public Long getCount() { return count; } public void setCount(Long count) { this.count = count; } }