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

import com.jeelowcode.core.framework.config.btncommand.receiver.IButtonCommandReceiver;
import com.jeelowcode.framework.utils.model.ResultDataModel;

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

    private String name = "详情";

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

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


}
