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


import com.xunhong.erp.turbo.api.infra.dto.cmd.CategoryDestroyCmd;
import com.xunhong.erp.turbo.infra.domain.gateway.CategoryGateway;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
@RequiredArgsConstructor
public class CategoryDestroyCmdExe {
	private final CategoryGateway categoryGateway;

	public void execute(CategoryDestroyCmd categoryDestroyCmd) {
		categoryGateway.destroy(categoryDestroyCmd);
	}
}
