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

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

@Slf4j
@Component
@RequiredArgsConstructor
public class ChannelDestroyCmdExe {
	private final ChannelGateway channelGateway;

	public void execute(ChannelDestroyCmd channelDestroyCmd) {
		channelGateway.destroy(channelDestroyCmd);
	}
}
