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

import com.xunhong.erp.turbo.api.user.dto.cmd.EmployeeDestroyCmd;
import com.xunhong.erp.turbo.user.domain.gateway.EmployeeGateway;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author shenyifei
 */
@Slf4j
@Component
@RequiredArgsConstructor
public class EmployeeDestroyCmdExe {
	private final EmployeeGateway employeeGateway;

	public void execute(EmployeeDestroyCmd employeeDestroyCmd) {
		employeeGateway.destroy(employeeDestroyCmd);
	}
}
