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

import com.lideeyunji.core.framework.config.btncommand.receiver.IButtonCommandReceiver;
import com.lideeyunji.core.framework.params.model.ExcelImportResultModel;

/**
 * 具体命令-新增按钮命令
 */
public class ImportButtonCommand implements IButtonCommand<ExcelImportResultModel> {
    //命令执行者
    private IButtonCommandReceiver<ExcelImportResultModel> recevier;

    private String name = "导入";

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

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


}
