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

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

/**
 * 移除角色.
 *
 * @author pengliang on 2023/5/12
 */
@Component
@RequiredArgsConstructor
public class RoleRemoveCmdExe {

  private final RoleService roleService;

  public void execute(RoleIdCmd cmd) {
    roleService.removeById(cmd.getId());
  }

}
