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

import com.xunhong.erp.turbo.api.rbac.dto.cmd.MenuDestroyCmd;
import com.xunhong.erp.turbo.rbac.domain.gateway.MenuGateway;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

@Component
@RequiredArgsConstructor
public class MenuDestroyCmdExe {
	private final MenuGateway menuGateway;

	public void execute(MenuDestroyCmd menuDestroyCmd) {
		menuGateway.destroy(menuDestroyCmd);
	}
}
