package com.red.circle.other.adapter.app.game.party3rd;

import com.red.circle.framework.web.controller.BaseController;
import com.red.circle.other.app.dto.cmd.game.barrage.GameCloseRoomCmd;
import com.red.circle.other.app.service.game.BarrageGameBaishunService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;

/**
 * Baishun game.
 *
 * @author pengliang on 2023/9/13
 */
@Slf4j
@RestController
@RequestMapping(value = "/barrage/game/baishun", produces = MediaType.APPLICATION_JSON_VALUE)
@RequiredArgsConstructor
public class BarrageGameBaishunRestController extends BaseController {

    private final BarrageGameBaishunService barrageGameBaishunService;


    @PostMapping("/close/room")
    public void closeRoom(@RequestBody GameCloseRoomCmd cmd) {
        barrageGameBaishunService.closeRoom(cmd);
    }
}
