package com.red.circle.other.app.service.game;

import com.red.circle.framework.dto.PageResult;
import com.red.circle.other.app.command.game.ranking.GameRankingQryExe;
import com.red.circle.other.app.dto.clientobject.game.GameRankingCO;
import com.red.circle.other.app.dto.cmd.game.GameRankingQry;
import com.red.circle.other.app.service.game.GameRankingService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

/**
 * 游戏排行榜服务实现.
 *
 * @author system
 */
@Slf4j
@Service
@RequiredArgsConstructor
public class GameRankingServiceImpl implements GameRankingService {

    private final GameRankingQryExe gameRankingQryExe;

    @Override
    public PageResult<GameRankingCO> pageRanking(GameRankingQry qry) {
        return gameRankingQryExe.execute(qry);
    }
}
