package com.muchinfo.mtp3common.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "PageResult对象", description = "公共列表响应对象")
public class PageResult<T> {

    @ApiModelProperty(value = "总页数")
    private Long pages;

    @ApiModelProperty(value = "页大小")
    private Long pageSize;

    @ApiModelProperty(value = "总数")
    private Long total;

    @ApiModelProperty(value = "当前页")
    private Long current;

    @ApiModelProperty(value = "data数据")
    private List<T> data;

    @ApiModelProperty(value = "响应码")
    private Integer code;

    @ApiModelProperty(value = "响应信息")
    private String message;
}
