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

import com.red.circle.console.infra.database.rds.service.admin.MenuService;
import com.red.circle.framework.core.dto.CommonCommand;
import java.util.Set;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

/**
 * 获取账户按钮.
 *
 * @author pengliang on 2023/5/12
 */
@Component
@RequiredArgsConstructor
public class AccountButtonsAliasesQryExe {

  private final MenuService menuService;

  public Set<String> execute(CommonCommand cmd) {
    return menuService.getUserPermButtonAliases(cmd.requiredReqUserId().intValue());
  }

}
