redeem code function is ready

This commit is contained in:
RockYang
2024-08-09 18:19:51 +08:00
parent 4b717109d2
commit dfba3c30a5
18 changed files with 979 additions and 123 deletions

View File

@@ -482,6 +482,11 @@ func main() {
group.GET("play", h.Play)
group.POST("lyric", h.Lyric)
}),
fx.Provide(handler.NewTestHandler),
fx.Invoke(func(s *core.AppServer, h *handler.TestHandler) {
group := s.Engine.Group("/api/test")
group.Any("sse", h.PostTest, h.SseTest)
}),
fx.Invoke(func(s *core.AppServer, db *gorm.DB) {
go func() {
err := s.Run(db)