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


import com.xunhong.erp.turbo.api.infra.dto.cmd.MaterialDestroyCmd;
import com.xunhong.erp.turbo.infra.domain.gateway.MaterialGateway;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

@Component
@RequiredArgsConstructor
public class MaterialDestroyCmdExe {

	private final MaterialGateway materialGateway;

	public void execute(MaterialDestroyCmd materialDestroyCmd) {
		materialGateway.destroy(materialDestroyCmd);
	}
}
