package com.red.circle.console.adapter.app.game;

import com.red.circle.console.app.service.app.game.GameKtvHotSongService;
import com.red.circle.framework.dto.PageResult;
import com.red.circle.framework.web.controller.BaseController;
import com.red.circle.other.inner.model.cmd.game.GameKtvHotSongCountQryCmd;
import com.red.circle.other.inner.model.dto.game.GameKtvHotSongCountDTO;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Game KTV热门歌曲 前端控制器.
 *
 * @author zongpubin
 * @since 2023-05-10
 */
@RequiredArgsConstructor
@RestController
@RequestMapping("/game-ktv-hot-song")
public class GameKtvHotSongRestController extends BaseController {

  private final GameKtvHotSongService gameKtvHotSongCountService;

  /**
   * 查询记录.
   */
  @GetMapping
  public PageResult<GameKtvHotSongCountDTO> listHotSong(GameKtvHotSongCountQryCmd query) {
    return gameKtvHotSongCountService.listHotSong(query);
  }


}
