Integrate SCUM real ops workflows

This commit is contained in:
npc0-hue
2026-08-10 21:12:53 +08:00
parent 1063330710
commit a770bc6250
88 changed files with 6375 additions and 2719 deletions
+1 -14
View File
@@ -6,20 +6,7 @@ import (
"browser.local/platform/dto"
)
// sourceRCONCommands godoc
// @Summary Queue a direct SCUM Source RCON chat or command
// @Description Queues one non-retryable command without persisting the raw command, RCON password, or response body.
// @Tags scum-rcon
// @Accept json
// @Produce json
// @Param id path string true "Server instance ID"
// @Param body body dto.SourceRCONCommandRequestBody true "SCUM Source RCON chat or command request"
// @Success 202 {object} dto.SourceRCONCommandResponse
// @Failure 400 {object} dto.ErrorResponse
// @Failure 401 {object} dto.ErrorResponse
// @Failure 403 {object} dto.ErrorResponse
// @Failure 405 {object} dto.ErrorResponse
// @Router /api/v1/server-instances/{id}/rcon/commands [post]
// sourceRCONCommands is kept as legacy service plumbing but is not registered as a browser product route.
func (h *coreHandlers) sourceRCONCommands(w http.ResponseWriter, r *http.Request) {
if r.Method != http.MethodPost {
writeMethodNotAllowed(w, http.MethodPost)