package com.org.hktshop.entity;

import java.io.Serializable;
import java.util.Collections;
import java.util.List;

import com.org.hktshop.utils.HttpCode;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/***
 * 系统翻译类
 * @author mxk
 *
 * @param <T>
 */
@SuppressWarnings("serial")
@Data
public class Page<T> implements Serializable {

    @ApiModelProperty("结果集")
    private List<T> records = Collections.emptyList();

    @ApiModelProperty("总行数")
    private long total;

    @ApiModelProperty("总页数")
    private long pages;

    @ApiModelProperty("每页行数 默认")
    private int pageSize = 20;

    @ApiModelProperty("当前页")
    private int current = 1;

    @ApiModelProperty("")
    private String msg;

    private Object object;
}
