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

import com.lideeyunji.core.framework.config.btncommand.receiver.IButtonCommandReceiver;

import java.util.Map;

/**
 * 具体命令-统计按钮命令
 */
public class SummaryButtonCommand implements IButtonCommand<Map> {
    //命令执行者
    private IButtonCommandReceiver<Map> recevier;

    private String name = "统计";

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

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


}
