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

import com.red.circle.console.app.service.app.user.RoomMikeTypeService;
import com.red.circle.framework.dto.PageResult;
import com.red.circle.framework.web.controller.BaseController;
import com.red.circle.other.inner.model.cmd.live.MikeTypePropsQryCmd;
import com.red.circle.other.inner.model.dto.live.RoomMikeTypeDTO;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 购买麦克风类型流水
 * </p>
 *
 * @author zongpubin on 2023-04-21 10:55
 */
@RequiredArgsConstructor
@RestController
@RequestMapping("/room-mike-type")
public class RoomMikeTypeRestController extends BaseController {

  private final RoomMikeTypeService roomMikeTypeService;

  /**
   * 分页.
   */
  @GetMapping("/page")
  public PageResult<RoomMikeTypeDTO> pageRoomMikeTypeList(
      MikeTypePropsQryCmd query) {

    return roomMikeTypeService
        .pageRoomMikeTypeList(query);
  }

}
