package com.xunhong.erp.turbo.infra.app.executor.cmd;

import com.xunhong.erp.turbo.api.infra.dto.cmd.AgreementDestroyCmd;
import com.xunhong.erp.turbo.infra.domain.gateway.AgreementGateway;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author shenyifei
 */
@Slf4j
@Component
@RequiredArgsConstructor
public class AgreementDestroyCmdExe {
	private final AgreementGateway agreementGateway;

	public void execute(AgreementDestroyCmd agreementDestroyCmd) {
		agreementGateway.destroy(agreementDestroyCmd);
	}
}

