All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.quhaodian.data.rest.core.BaseResource Maven / Gradle / Ivy

There is a newer version: 1.8.7
Show newest version
package com.quhaodian.data.rest.core;

import com.quhaodian.data.core.Pagination;
import com.quhaodian.data.rest.domain.AbstractPageVo;

/**
 * 资源转换服务
 *
 * @param    目标
 * @param    源对象
 * @param  目标分页对象
 * @author ada
 */
public abstract class BaseResource> {

  public abstract Conver getConver();

  public PVo page(Pagination pager) {
    PVo result = getPageVo();

    ConverUtils.coverpage(result, pager, getConver());

    return result;

  }

  public abstract PVo getPageVo();
}