Initial commit

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-15 13:57:10 +08:00
co-authored by Claude Opus 5
commit 8679200f41
1897 changed files with 257900 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
package router
import (
"91porn-server/web/api/statctrl"
"github.com/gin-gonic/gin"
)
func statRouter(router *gin.RouterGroup) {
group := router.Group("/stats")
{
group.GET("/user/daily/list", statctrl.DailyStats) //用户每日统计
group.GET("/video/earn/list", statctrl.VideoEarnStats)
group.GET("/video/earn/aggregate", statctrl.VideoAggregateStats)
group.GET("/video/publisher/deduction", statctrl.VideoPublisherDeductionStats)
order := group.Group("/order")
{
order.GET("/list", statctrl.OrderStats) //充值和兑换订单统计
order.POST("/sucRate", statctrl.RchSucRate) //充值和兑换订单统计
}
export := group.Group("/export")
{
export.GET("/trans", statctrl.DataStat) //用户每日统计
export.GET("/vidsales", statctrl.VidStat) //用户每日统计
}
}
}