Merge pull request #552 from cdtft/master

拼写错误
This commit is contained in:
barnettZQG 2019-11-14 01:59:41 -06:00 committed by GitHub
commit 171ecd19ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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 {