fix(stock): 按价格(close vs prev_close)统计涨跌,新增调试接口

This commit is contained in:
2026-07-04 11:14:26 +08:00
parent 1453088c0b
commit 05c38ca8e3
2 changed files with 83 additions and 3 deletions
+1
View File
@@ -61,6 +61,7 @@ func Setup(cfg *config.Config, db *gorm.DB, stockSyncSvc *services.StockSyncServ
admin.DELETE("/users/:id", adminHandler.DeleteUser)
admin.GET("/roles", adminHandler.ListRoles)
admin.POST("/stocks/sync", stockHandler.TriggerSync)
admin.GET("/stocks/debug-stats", stockHandler.DebugStats)
}
return r