
package com.lideeyunji.core.framework.config.btncommand.button;

import com.lideeyunji.core.framework.config.btncommand.receiver.IButtonCommandReceiver;
import com.lideeyunji.tool.framework.yunji.model.ResultDataModel;

/**
 * 具体命令-分页按钮命令
 */
public class ListButtonCommand implements IButtonCommand<ResultDataModel> {
    //命令执行者
    private IButtonCommandReceiver<ResultDataModel> recevier;

    private String name = "分页";

    /**
     * 绑定执行者
     *
     * @param recevier 执行者
     */
    public ListButtonCommand(IButtonCommandReceiver recevier) {
        this.recevier = recevier;
    }

    /**
     * 执行命令
     *
     * @return
     */
    @Override
    public ResultDataModel execute() {
        return recevier.receiver();
    }


}
