fix(plugin): update tool may reset request or response parameters (#302)

This commit is contained in:
mrh997
2025-07-30 13:35:22 +08:00
committed by GitHub
parent e3930873c6
commit efa20f22f6
10 changed files with 69 additions and 71 deletions

View File

@@ -853,3 +853,11 @@ func (p *pluginRepoImpl) MoveAPPPluginToLibrary(ctx context.Context, draftPlugin
return nil
}
func (p *pluginRepoImpl) UpdateDebugExample(ctx context.Context, pluginID int64, openapiDoc *model.Openapi3T) (err error) {
updatedPlugin := entity.NewPluginInfo(&model.PluginInfo{
ID: pluginID,
OpenapiDoc: openapiDoc,
})
return p.pluginDraftDAO.Update(ctx, updatedPlugin)
}