package com.red.circle.console.app.command.admin;

import com.red.circle.console.app.dto.cmd.admin.MenuIdCmd;
import com.red.circle.console.infra.database.rds.service.admin.MenuService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

/**
 * 移除菜单.
 *
 * @author pengliang on 2023/5/12
 */
@Component
@RequiredArgsConstructor
public class MenuRemoveCmdExe {

  private final MenuService menuService;

  public void execute(MenuIdCmd cmd) {
    menuService.removeMenu(cmd.getId());
  }

}
