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.LiveHeartbeatCmd;
import java.util.List;
import org.springframework.validation.annotation.Validated;
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;

public interface LiveHeartbeatApi {

  String API_PREFIX = "/live/heartbeat/client";

  /**
   * 订单信息查询.
   */
  @PostMapping("/create")
  ResultResponse<Void> create(@RequestParam("roomId") Long roomId,@RequestBody @Validated List<LiveHeartbeatCmd> qryCmd);


  @GetMapping("/listLiveHeartbeat")
  ResultResponse<List<LiveHeartbeatCmd>> listLiveHeartbeat(@RequestParam("roomId") Long roomId);

}
