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

import com.xunhong.erp.turbo.api.infra.dto.cmd.PlatformDestroyCmd;
import com.xunhong.erp.turbo.infra.app.assembler.PlatformAssembler;
import com.xunhong.erp.turbo.infra.domain.gateway.PlatformGateway;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

/**
 * @author shenyifei
 */
@Component
@RequiredArgsConstructor
public class PlatformDestroyCmdExe {
	private final PlatformAssembler platformAssembler;
	private final PlatformGateway platformGateway;

	public void execute(PlatformDestroyCmd platformDestroyCmd) {
		platformGateway.destroy(platformDestroyCmd);
	}
}
