From 98d02cf4d171e2524d8854ebf3493712f6c0cb70 Mon Sep 17 00:00:00 2001 From: starryskymeow Date: Thu, 17 Jul 2025 15:16:22 +0800 Subject: [PATCH] fix api keyword of workspaceID --- internal/api/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api/types.go b/internal/api/types.go index ddc99d1..a43743e 100644 --- a/internal/api/types.go +++ b/internal/api/types.go @@ -6,7 +6,7 @@ import ( // CreateWorkspaceRequest defines the request body for creating a new workspace. type CreateWorkspaceRequest struct { - WorkspaceID string `json:"WorkspaceID" binding:"required"` + WorkspaceID string `json:"workspaceID" binding:"required"` Image string `json:"image,omitempty"` Env map[string]string `json:"env,omitempty"` ResourceLimits *k8s.ResourceLimits `json:"resourceLimits,omitempty"`