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

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

@Component
@RequiredArgsConstructor
public class RoleDestroyCmdExe {
	private final RoleGateway roleGateway;

	public void execute(RoleDestroyCmd roleDeleteCmd) {
		roleGateway.destroy(roleDeleteCmd);
	}
}
