feat: 增加系统用户管理

This commit is contained in:
chenzifan
2024-03-07 08:37:48 +08:00
parent 7a25c6e062
commit 6ce7a9c16f
9 changed files with 7869 additions and 6 deletions

View File

@@ -369,6 +369,16 @@ func main() {
group.GET("token", h.GenToken)
}),
// 系统管理员
fx.Provide(admin.NewSysUserHandler),
fx.Invoke(func(s *core.AppServer, h *admin.SysUserHandler) {
group := s.Engine.Group("/api/admin/sysUser/")
group.POST("save", h.Save)
group.GET("list", h.List)
group.POST("remove", h.Remove)
group.POST("resetPass", h.ResetPass)
}),
fx.Provide(handler.NewFunctionHandler),
fx.Invoke(func(s *core.AppServer, h *handler.FunctionHandler) {
group := s.Engine.Group("/api/function/")