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

import com.xunhong.erp.turbo.api.rbac.dto.cmd.PermissionDestroyCmd;
import com.xunhong.erp.turbo.rbac.app.assembler.PermissionAssembler;
import com.xunhong.erp.turbo.rbac.domain.gateway.PermissionGateway;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

@Component
@RequiredArgsConstructor
public class PermissionDestroyCmdExe {
	private final PermissionGateway permissionGateway;
	private final PermissionAssembler permissionAssembler;

	public void execute(PermissionDestroyCmd permissionDestroyCmd) {
		permissionGateway.destroy(permissionDestroyCmd);
	}
}
