mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-04 20:57:38 +08:00
commit
171ecd19ea
@ -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
|
||||
|
@ -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
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user