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

import com.xunhong.erp.turbo.api.user.dto.cmd.UserDestroyCmd;
import com.xunhong.erp.turbo.user.domain.gateway.UserGateway;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;


@Component
@RequiredArgsConstructor
public class UserDestroyCmdExe {
	private final UserGateway userGateway;

	public void execute(UserDestroyCmd userDestroyCmd) {
		userGateway.destroy(userDestroyCmd);
	}
}
