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

import com.red.circle.console.app.dto.clienobject.game.GameKtvUserSongCountCO;
import com.red.circle.console.app.service.app.game.GameKtvUserSongService;
import com.red.circle.framework.dto.PageResult;
import com.red.circle.framework.web.controller.BaseController;
import com.red.circle.other.inner.model.cmd.game.GameKtvUserSongCountQryCmd;
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-11
 */
@RequiredArgsConstructor
@RestController
@RequestMapping("/game-ktv-user-song")
public class GameKtvUserSongRestController extends BaseController {

  private final GameKtvUserSongService gameKtvUserSongService;

  /**
   * 查询记录.
   */
  @GetMapping
  public PageResult<GameKtvUserSongCountCO> listUserSongCount(GameKtvUserSongCountQryCmd query) {
    return gameKtvUserSongService.listUserSongCount(query);
  }
}
