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

com.github.yiuman.citrus.support.model.Page Maven / Gradle / Ivy

package com.github.yiuman.citrus.support.model;

import com.github.yiuman.citrus.support.widget.Inputs;
import com.github.yiuman.citrus.support.widget.Widget;
import lombok.extern.slf4j.Slf4j;
import org.springframework.util.ReflectionUtils;
import org.springframework.util.StringUtils;

import java.lang.reflect.Field;
import java.util.*;
import java.util.function.Function;
import java.util.stream.Collectors;

/**
 * 分页页面对象
 *
 * @author yiuman
 * @date 2020/5/7
 */
@Slf4j
public class Page extends com.baomidou.mybatisplus.extension.plugins.pagination.Page {

    /**
     * 是否可选
     */
    private Boolean hasSelect = true;

    /**
     * 主键属性名称
     */
    private String itemKey;

    /**
     * 实体的主键属性
     */
    private Field keyFiled;

    /**
     * 控件集合
     */
    private List widgets = new ArrayList<>();

    /**
     * 列头,表头
     */
    private List
headers = new ArrayList<>(); /** * 顶部按钮 */ private List