package com.red.circle.other.inner.endpoint.live.api;


import com.red.circle.framework.dto.ResultResponse;
import com.red.circle.other.inner.model.cmd.live.AppActiveVoiceRoomQryCmd;
import com.red.circle.other.inner.model.dto.live.ActiveVoiceRoomCO;
import com.red.circle.other.inner.model.dto.live.ActiveVoiceRoomDTO;
import java.util.List;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 房间贡献，余额.
 *
 * @author pengliang on 2023/7/24
 */
public interface ActiveVoiceRoomClientApi {

  String API_PREFIX = "/active-voice-room/client";


  @GetMapping("/count")
  ResultResponse<Long> count(@RequestParam("sysOrigin") String sysOrigin);

  /**
   * 获取活跃房间.
   */
  @PostMapping("/listOps")
  ResultResponse<List<ActiveVoiceRoomDTO>> listOps(@RequestBody AppActiveVoiceRoomQryCmd qryCmd);

  @GetMapping("/createNoBody")
  ResultResponse<ActiveVoiceRoomCO> createNoBodyRoom(@RequestParam("roomId") Long roomId);

}
