fix plugin manifest registration upsert

This commit is contained in:
npc0-hue
2026-08-04 16:46:51 +08:00
parent ee02974ff8
commit 980f1786dd
4 changed files with 38 additions and 9 deletions
+1 -2
View File
@@ -1123,14 +1123,13 @@ func (h *coreHandlers) gamePlugins(w http.ResponseWriter, r *http.Request) {
// gamePluginManifestRegistration godoc
// @Summary Register game management plugin manifest
// @Description Validates and registers one game management plugin manifest as installed registry metadata.
// @Description Validates and registers one game management plugin manifest as installed registry metadata, refreshing an existing manifest with the same ID in place.
// @Tags game-plugins
// @Accept json
// @Produce json
// @Param body body dto.GamePluginManifestRegistrationRequest true "Game plugin manifest registration request"
// @Success 201 {object} dto.GamePluginResponse
// @Failure 400 {object} dto.ErrorResponse
// @Failure 409 {object} dto.ErrorResponse
// @Failure 405 {object} dto.ErrorResponse
// @Router /api/v1/game-plugins/register-manifest [post]
func (h *coreHandlers) gamePluginManifestRegistration(w http.ResponseWriter, r *http.Request) {