增加服务分组管理

This commit is contained in:
GoEdgeLab
2020-10-29 20:53:08 +08:00
parent d68a49cb41
commit 8397c71a21
22 changed files with 403 additions and 32 deletions

View File

@@ -0,0 +1,22 @@
package groups
import (
"github.com/iwind/TeaGo/actions"
"net/http"
)
type Helper struct {
}
func NewHelper() *Helper {
return &Helper{}
}
func (this *Helper) BeforeAction(action *actions.ActionObject) {
if action.Request.Method != http.MethodGet {
return
}
action.Data["mainTab"] = "component"
action.Data["secondMenuItem"] = "group"
}