feat(adcenter): 新增 POST /api/app/ads/click 广告点击上报到广告中心

- handler 绑定 proto.AdsClickInfo{appId, adsId, location}
- 走 ${versionUrl}/api/stat/advitise/v2/click
- appId<=0 时回落到默认 advertiseAppId=12

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-10-29 16:23:44 +08:00
co-authored by Claude Opus 4.7
parent 7392098364
commit 4a21a5d393
4 changed files with 109 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
package router
import (
"videoweb/app/api/adsapi"
"github.com/gin-gonic/gin"
)
func adsRouter(r *gin.Engine) {
r.POST("/api/app/ads/click", adsapi.Click)
}
+1
View File
@@ -122,6 +122,7 @@ func registeRouter(r *gin.Engine) {
translationRouter(r)
navigationRouter(r)
statcenterRouter(r)
adsRouter(r)
r.GET("/notpage", templatecache.WithCache(time.Minute*1), home.PageNotFound)
}