[用户]实现对平台用户的增删改查

This commit is contained in:
GoEdgeLab
2020-12-04 16:00:55 +08:00
parent 9e3dc3d2d2
commit 000b5c79e3
19 changed files with 681 additions and 3 deletions

View File

@@ -0,0 +1,22 @@
package users
import (
"github.com/TeaOSLab/EdgeAdmin/internal/configloaders"
"github.com/TeaOSLab/EdgeAdmin/internal/web/helpers"
"github.com/iwind/TeaGo"
)
func init() {
TeaGo.BeforeStart(func(server *TeaGo.Server) {
server.
Helper(helpers.NewUserMustAuth(configloaders.AdminModuleCodeUser)).
Data("teaMenu", "users").
Prefix("/users").
Get("", new(IndexAction)).
GetPost("/createPopup", new(CreatePopupAction)).
Get("/user", new(UserAction)).
GetPost("/update", new(UpdateAction)).
Post("/delete", new(DeleteAction)).
EndAll()
})
}