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

import com.jeelowcode.core.framework.config.btncommand.receiver.IButtonCommandReceiver;
import com.jeelowcode.core.framework.params.model.ExcelTemplateModel;

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

    private String name = "导出数据模板";

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

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


}
