package com.red.circle.other.app.command.game.ktv;

import com.red.circle.other.app.dto.cmd.game.GameKtvRemoveSongCmd;
import com.red.circle.other.infra.database.mongo.service.game.GameKtvUserSongCountService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

/**
 * 移除用户，房间中的已点歌曲.
 *
 * @author pengshigang on 2023/5/6
 */
@Component
@RequiredArgsConstructor
public class GameKtvSongDelAllExe {

  private final GameKtvUserSongCountService gameKtvUserSongCountService;

  public void execute(GameKtvRemoveSongCmd cmd) {

    gameKtvUserSongCountService.deleteByIds(cmd.getIds());

  }

}
