image task list page for admin console is ready

This commit is contained in:
RockYang
2024-10-09 18:17:44 +08:00
parent 52e40daf23
commit ba20717a09
8 changed files with 728 additions and 25 deletions

View File

@@ -539,6 +539,13 @@ func main() {
},
})
}),
fx.Provide(admin.NewImageHandler),
fx.Invoke(func(s *core.AppServer, h *admin.ImageHandler) {
group := s.Engine.Group("/api/admin/image")
group.POST("/list/mj", h.MjList)
group.POST("/list/sd", h.SdList)
group.POST("/list/dall", h.DallList)
}),
)
// 启动应用程序
go func() {