package com.red.circle.other.app.command.room.query;

import com.red.circle.other.app.common.room.RoomContributionCommon;
import com.red.circle.other.app.dto.clientobject.room.RoomContributionTopCO;
import com.red.circle.other.app.dto.cmd.room.RoomContributionRankQryCmd;
import java.util.List;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * 房间贡献-top榜单.
 *
 * @author pengliang on 2021/9/15
 */
@Service
@RequiredArgsConstructor
public class RoomContributionTodayTopQryExe {

  private final RoomContributionCommon roomContributionCommon;

  public List<RoomContributionTopCO> execute(RoomContributionRankQryCmd cmd) {

    return roomContributionCommon.getRoomContributionTop(cmd.getDataType(), cmd.getRoomId(),
        cmd.getSize());
  }


}
