Files
51dj_server/web/router/sync.go
T
rootandClaude Opus 4.7 97f679d130 sync: port tangguo_server upstream changes
Ported 7 commits (3a79d6a..3dcf693) from tangguo_server:
- 版本控制: comment out 2FA in admin.go
- 支付和广告调试: pay/ad refactor across appg/adser/rechargeser/pingctrl
- 对接统计: add bili_sync statistics endpoint
- 代码优化: ginUtil improvements
- 修改es/修改appID/代码调整: cumulative updates

Preserved hgmj-local differences:
- ES table prefix stays 91jd_ (not tangguo_)
- BillPlatformID stays 91短剧 (not 糖果短剧)
- admin googauth label stays @91短剧
- appg.go retains LouFengH5/DataBuriedPoint fields
- rechargeser.go retains reportser event reporting

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-10-08 17:18:41 +08:00

38 lines
1.0 KiB
Go

package router
import (
"91jd-server/web/api/statcenterctl"
"github.com/gin-gonic/gin"
)
// statcenterRouter 数据中心拉取同步数据(协议与哔哩 /api/web/statcenter/sync 一致)
func statcenterRouter(router *gin.RouterGroup) {
router.POST("/sync", statcenterctl.StatcenterSyncList)
}
// syncRouter 数据同步
func syncRouter(router *gin.RouterGroup) {
routerGroup := router.Group("/router")
{
// 返回所有同步接口路由
routerGroup.GET("/all", statcenterctl.SyncAllRouterList)
}
userGroup := router.Group("/user")
{
// 新用户
userGroup.GET("/newUser", statcenterctl.NewUserRegisterList)
// 用户访问
userGroup.GET("/userAccess", statcenterctl.NewUserAccessList)
// 邀请
userGroup.GET("/inviteRecord", statcenterctl.NewUserInviterList)
}
orderGroup := router.Group("/order")
{
// 充值订单,所有的
orderGroup.GET("/newOrder", statcenterctl.NewUserRechargeList)
// 充值订单,已完成的
orderGroup.GET("/finishOrder", statcenterctl.NewUserPaidRechargeList)
}
}