markmap enable to select ai model

This commit is contained in:
RockYang
2024-04-15 06:16:53 +08:00
parent de482dd9f4
commit 22febfc42a
5 changed files with 124 additions and 33 deletions

View File

@@ -436,6 +436,11 @@ func main() {
group := s.Engine.Group("/api/menu/")
group.GET("list", h.List)
}),
fx.Provide(handler.NewMarkMapHandler),
fx.Invoke(func(s *core.AppServer, h *handler.MarkMapHandler) {
group := s.Engine.Group("/api/markMap/")
group.GET("model", h.GetModel)
}),
fx.Invoke(func(s *core.AppServer, db *gorm.DB) {
go func() {
err := s.Run(db)