From 8e5546d161c552b94ae2e8e31fdbee5bcd43c15a Mon Sep 17 00:00:00 2001 From: wangcheng Date: Wed, 13 Nov 2019 17:38:07 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=8B=BC=E5=86=99=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/api/api_interface.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/api/api_interface.go b/api/api/api_interface.go index 1e0353bf7..9db340c00 100644 --- a/api/api/api_interface.go +++ b/api/api/api_interface.go @@ -105,7 +105,7 @@ type PluginInterface interface { PluginAction(w http.ResponseWriter, r *http.Request) PluginDefaultENV(w http.ResponseWriter, r *http.Request) PluginBuild(w http.ResponseWriter, r *http.Request) - GetAllPluginBuildVersons(w http.ResponseWriter, r *http.Request) + GetAllPluginBuildVersions(w http.ResponseWriter, r *http.Request) GetPluginBuildVersion(w http.ResponseWriter, r *http.Request) DeletePluginBuildVersion(w http.ResponseWriter, r *http.Request) //plugin From 6f3c1c7fb6d2d28f7a5f8c60b1bfb74d192bfe3f Mon Sep 17 00:00:00 2001 From: wangcheng <453451180@qq.com> Date: Wed, 13 Nov 2019 18:00:43 +0800 Subject: [PATCH 2/2] =?UTF-8?q?:ok=5Fhand:=20=E6=8B=BC=E5=86=99=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/api_routers/version2/v2Plugin.go | 2 +- api/controller/plugin.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/api_routers/version2/v2Plugin.go b/api/api_routers/version2/v2Plugin.go index 9b1ab34db..ede4e9753 100644 --- a/api/api_routers/version2/v2Plugin.go +++ b/api/api_routers/version2/v2Plugin.go @@ -36,7 +36,7 @@ func (v2 *V2) pluginRouter() chi.Router { r.Delete("/", controller.GetManager().PluginAction) r.Post("/build", controller.GetManager().PluginBuild) //get this plugin all build version - r.Get("/build-version", controller.GetManager().GetAllPluginBuildVersons) + r.Get("/build-version", controller.GetManager().GetAllPluginBuildVersions) r.Get("/build-version/{version_id}", controller.GetManager().GetPluginBuildVersion) r.Delete("/build-version/{version_id}", controller.GetManager().DeletePluginBuildVersion) return r diff --git a/api/controller/plugin.go b/api/controller/plugin.go index 5fcc47c8f..fbbc09962 100644 --- a/api/controller/plugin.go +++ b/api/controller/plugin.go @@ -290,7 +290,7 @@ func (t *TenantStruct) PluginBuild(w http.ResponseWriter, r *http.Request) { httputil.ReturnSuccess(r, w, pbv) } -//GetAllPluginBuildVersons 获取该插件所有的构建版本 +//GetAllPluginBuildVersions 获取该插件所有的构建版本 // swagger:operation GET /v2/tenants/{tenant_name}/plugin/{plugin_id}/build-version v2 allPluginVersions // // 获取所有的构建版本信息 @@ -311,7 +311,7 @@ func (t *TenantStruct) PluginBuild(w http.ResponseWriter, r *http.Request) { // schema: // "$ref": "#/responses/commandResponse" // description: 统一返回格式 -func (t *TenantStruct) GetAllPluginBuildVersons(w http.ResponseWriter, r *http.Request) { +func (t *TenantStruct) GetAllPluginBuildVersions(w http.ResponseWriter, r *http.Request) { pluginID := r.Context().Value(middleware.ContextKey("plugin_id")).(string) versions, err := handler.GetPluginManager().GetAllPluginBuildVersions(pluginID) if err != nil {