feat: 添加房间详情 API
This commit is contained in:
@@ -112,6 +112,18 @@ public class GameController {
|
||||
return ApiResponse.ok(ready);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取房间详情
|
||||
*
|
||||
* 无需登录即可查看(观战者也可查看)。
|
||||
*/
|
||||
@SaIgnore
|
||||
@GetMapping("/room/{roomId}")
|
||||
public ApiResponse<RoomDetailResponse> roomDetail(@PathVariable String roomId) {
|
||||
RoomDetailResponse result = gameService.getRoomDetail(roomId);
|
||||
return ApiResponse.ok(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* 开始游戏
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user