add hotapi
This commit is contained in:
@@ -45,6 +45,9 @@ func (r *StatisticsRoutes) Register(router *sharedhttp.GinRouter) {
|
||||
{
|
||||
// 获取公开统计信息
|
||||
statistics.GET("/public", r.statisticsHandler.GetPublicStatistics)
|
||||
|
||||
// 获取API受欢迎榜单(公开接口)
|
||||
statistics.GET("/api-popularity-ranking", r.statisticsHandler.GetPublicApiPopularityRanking)
|
||||
}
|
||||
|
||||
// 用户统计接口 - 需要认证
|
||||
@@ -57,7 +60,7 @@ func (r *StatisticsRoutes) Register(router *sharedhttp.GinRouter) {
|
||||
userStats.GET("/api-calls", r.statisticsHandler.GetApiCallsStatistics)
|
||||
userStats.GET("/consumption", r.statisticsHandler.GetConsumptionStatistics)
|
||||
userStats.GET("/recharge", r.statisticsHandler.GetRechargeStatistics)
|
||||
|
||||
|
||||
// 获取最新产品推荐
|
||||
userStats.GET("/latest-products", r.statisticsHandler.GetLatestProducts)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user