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

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

/**
 * @author shenyifei
 */
@Slf4j
@Component
@RequiredArgsConstructor
public class DictionaryDestroyCmdExe {
	private final DictionaryGateway dictionaryGateway;

	public void execute(DictionaryDestroyCmd dictionaryDestroyCmd) {
		dictionaryGateway.destroy(dictionaryDestroyCmd);
	}
}

