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

import com.red.circle.framework.dto.ResultResponse;
import com.red.circle.other.inner.model.dto.live.RoomTouristDTO;
import java.util.List;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 房间足迹.
 *
 * @author pengliang on 2023/11/17
 */
public interface RoomTouristClientApi {

  String API_PREFIX = "/room/tourist/client";

  /**
   * 查询房间内最近访客记录.
   *
   * @param roomId 房间ID 必填
   * @param userId 用户ID 选填
   */
  @GetMapping("/listRecentVisitors")
  ResultResponse<List<RoomTouristDTO>> listRecentVisitors(
      @RequestParam("roomId") Long roomId,
      @RequestParam(value = "userId", required = false) Long userId
  );

}
